Lines Matching refs:sb
30 static void qnx6_put_super(struct super_block *sb);
31 static struct inode *qnx6_alloc_inode(struct super_block *sb);
33 static int qnx6_remount(struct super_block *sb, int *flags, char *data);
48 struct super_block *sb = root->d_sb; in qnx6_show_options() local
49 struct qnx6_sb_info *sbi = QNX6_SB(sb); in qnx6_show_options()
56 static int qnx6_remount(struct super_block *sb, int *flags, char *data) in qnx6_remount() argument
58 sync_filesystem(sb); in qnx6_remount()
63 static unsigned qnx6_get_devblock(struct super_block *sb, __fs32 block) in qnx6_get_devblock() argument
65 struct qnx6_sb_info *sbi = QNX6_SB(sb); in qnx6_get_devblock()
157 struct super_block *sb = dentry->d_sb; in qnx6_statfs() local
158 struct qnx6_sb_info *sbi = QNX6_SB(sb); in qnx6_statfs()
159 u64 id = huge_encode_dev(sb->s_bdev->bd_dev); in qnx6_statfs()
161 buf->f_type = sb->s_magic; in qnx6_statfs()
162 buf->f_bsize = sb->s_blocksize; in qnx6_statfs()
163 buf->f_blocks = fs32_to_cpu(sbi, sbi->sb->sb_num_blocks); in qnx6_statfs()
164 buf->f_bfree = fs32_to_cpu(sbi, sbi->sb->sb_free_blocks); in qnx6_statfs()
165 buf->f_files = fs32_to_cpu(sbi, sbi->sb->sb_num_inodes); in qnx6_statfs()
166 buf->f_ffree = fs32_to_cpu(sbi, sbi->sb->sb_free_inodes); in qnx6_statfs()
204 void qnx6_superblock_debug(struct qnx6_super_block *sb, struct super_block *s) in qnx6_superblock_debug() argument
208 pr_debug("magic: %08x\n", fs32_to_cpu(sbi, sb->sb_magic)); in qnx6_superblock_debug()
209 pr_debug("checksum: %08x\n", fs32_to_cpu(sbi, sb->sb_checksum)); in qnx6_superblock_debug()
210 pr_debug("serial: %llx\n", fs64_to_cpu(sbi, sb->sb_serial)); in qnx6_superblock_debug()
211 pr_debug("flags: %08x\n", fs32_to_cpu(sbi, sb->sb_flags)); in qnx6_superblock_debug()
212 pr_debug("blocksize: %08x\n", fs32_to_cpu(sbi, sb->sb_blocksize)); in qnx6_superblock_debug()
213 pr_debug("num_inodes: %08x\n", fs32_to_cpu(sbi, sb->sb_num_inodes)); in qnx6_superblock_debug()
214 pr_debug("free_inodes: %08x\n", fs32_to_cpu(sbi, sb->sb_free_inodes)); in qnx6_superblock_debug()
215 pr_debug("num_blocks: %08x\n", fs32_to_cpu(sbi, sb->sb_num_blocks)); in qnx6_superblock_debug()
216 pr_debug("free_blocks: %08x\n", fs32_to_cpu(sbi, sb->sb_free_blocks)); in qnx6_superblock_debug()
217 pr_debug("inode_levels: %02x\n", sb->Inode.levels); in qnx6_superblock_debug()
231 static int qnx6_parse_options(char *options, struct super_block *sb) in qnx6_parse_options() argument
234 struct qnx6_sb_info *sbi = QNX6_SB(sb); in qnx6_parse_options()
262 struct qnx6_super_block *sb; in qnx6_check_first_superblock() local
271 sb = (struct qnx6_super_block *)bh->b_data; in qnx6_check_first_superblock()
272 if (fs32_to_cpu(sbi, sb->sb_magic) != QNX6_SUPER_MAGIC) { in qnx6_check_first_superblock()
274 if (fs32_to_cpu(sbi, sb->sb_magic) == QNX6_SUPER_MAGIC) { in qnx6_check_first_superblock()
406 sbi->sb = (struct qnx6_super_block *)bh1->b_data; in qnx6_fill_super()
412 sbi->sb = (struct qnx6_super_block *)bh2->b_data; in qnx6_fill_super()
482 static void qnx6_put_super(struct super_block *sb) in qnx6_put_super() argument
484 struct qnx6_sb_info *qs = QNX6_SB(sb); in qnx6_put_super()
489 sb->s_fs_info = NULL; in qnx6_put_super()
519 struct inode *qnx6_iget(struct super_block *sb, unsigned ino) in qnx6_iget() argument
521 struct qnx6_sb_info *sbi = QNX6_SB(sb); in qnx6_iget()
529 inode = iget_locked(sb, ino); in qnx6_iget()
541 sb->s_id, ino); in qnx6_iget()
551 sb->s_id); in qnx6_iget()
595 static struct inode *qnx6_alloc_inode(struct super_block *sb) in qnx6_alloc_inode() argument