Lines Matching refs:sb

31 static void qnx6_put_super(struct super_block *sb);
32 static struct inode *qnx6_alloc_inode(struct super_block *sb);
48 struct super_block *sb = root->d_sb;
49 struct qnx6_sb_info *sbi = QNX6_SB(sb);
58 struct super_block *sb = fc->root->d_sb;
60 sync_filesystem(sb);
65 static unsigned qnx6_get_devblock(struct super_block *sb, __fs32 block)
67 struct qnx6_sb_info *sbi = QNX6_SB(sb);
158 struct super_block *sb = dentry->d_sb;
159 struct qnx6_sb_info *sbi = QNX6_SB(sb);
160 u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
162 buf->f_type = sb->s_magic;
163 buf->f_bsize = sb->s_blocksize;
164 buf->f_blocks = fs32_to_cpu(sbi, sbi->sb->sb_num_blocks);
165 buf->f_bfree = fs32_to_cpu(sbi, sbi->sb->sb_free_blocks);
166 buf->f_files = fs32_to_cpu(sbi, sbi->sb->sb_num_inodes);
167 buf->f_ffree = fs32_to_cpu(sbi, sbi->sb->sb_free_inodes);
204 void qnx6_superblock_debug(struct qnx6_super_block *sb, struct super_block *s)
208 pr_debug("magic: %08x\n", fs32_to_cpu(sbi, sb->sb_magic));
209 pr_debug("checksum: %08x\n", fs32_to_cpu(sbi, sb->sb_checksum));
210 pr_debug("serial: %llx\n", fs64_to_cpu(sbi, sb->sb_serial));
211 pr_debug("flags: %08x\n", fs32_to_cpu(sbi, sb->sb_flags));
212 pr_debug("blocksize: %08x\n", fs32_to_cpu(sbi, sb->sb_blocksize));
213 pr_debug("num_inodes: %08x\n", fs32_to_cpu(sbi, sb->sb_num_inodes));
214 pr_debug("free_inodes: %08x\n", fs32_to_cpu(sbi, sb->sb_free_inodes));
215 pr_debug("num_blocks: %08x\n", fs32_to_cpu(sbi, sb->sb_num_blocks));
216 pr_debug("free_blocks: %08x\n", fs32_to_cpu(sbi, sb->sb_free_blocks));
217 pr_debug("inode_levels: %02x\n", sb->Inode.levels);
259 struct qnx6_super_block *sb;
268 sb = (struct qnx6_super_block *)bh->b_data;
269 if (fs32_to_cpu(sbi, sb->sb_magic) != QNX6_SUPER_MAGIC) {
271 if (fs32_to_cpu(sbi, sb->sb_magic) == QNX6_SUPER_MAGIC) {
401 sbi->sb = (struct qnx6_super_block *)bh1->b_data;
407 sbi->sb = (struct qnx6_super_block *)bh2->b_data;
414 pr_err("too many inode levels (max %i, sb %i)\n",
419 pr_err("too many longfilename levels (max %i, sb %i)\n",
477 static void qnx6_put_super(struct super_block *sb)
479 struct qnx6_sb_info *qs = QNX6_SB(sb);
484 sb->s_fs_info = NULL;
514 struct inode *qnx6_iget(struct super_block *sb, unsigned ino)
516 struct qnx6_sb_info *sbi = QNX6_SB(sb);
524 inode = iget_locked(sb, ino);
536 sb->s_id, ino);
546 sb->s_id);
588 static struct inode *qnx6_alloc_inode(struct super_block *sb)
591 ei = alloc_inode_sb(sb, qnx6_inode_cachep, GFP_KERNEL);