Lines Matching refs:sb
76 static struct inode *efs_alloc_inode(struct super_block *sb)
79 ei = alloc_inode_sb(sb, efs_inode_cachep, GFP_KERNEL);
234 static int efs_validate_super(struct efs_sb_info *sb, struct efs_super *super) {
239 sb->fs_magic = be32_to_cpu(super->fs_magic);
240 sb->total_blocks = be32_to_cpu(super->fs_size);
241 sb->first_block = be32_to_cpu(super->fs_firstcg);
242 sb->group_size = be32_to_cpu(super->fs_cgfsize);
243 sb->data_free = be32_to_cpu(super->fs_tfree);
244 sb->inode_free = be32_to_cpu(super->fs_tinode);
245 sb->inode_blocks = be16_to_cpu(super->fs_cgisize);
246 sb->total_groups = be16_to_cpu(super->fs_ncg);
253 struct efs_sb_info *sb;
257 sb = kzalloc(sizeof(struct efs_sb_info), GFP_KERNEL);
258 if (!sb)
260 s->s_fs_info = sb;
284 sb->fs_start = efs_validate_vh((struct volume_header *) bh->b_data);
287 if (sb->fs_start == -1) {
291 bh = sb_bread(s, sb->fs_start + EFS_SUPER);
297 if (efs_validate_super(sb, (struct efs_super *) bh->b_data)) {
300 sb->fs_start + EFS_SUPER);
386 struct super_block *sb = dentry->d_sb;
387 struct efs_sb_info *sbi = SUPER_INFO(sb);
388 u64 id = huge_encode_dev(sb->s_bdev->bd_dev);