Lines Matching refs:sb
67 static struct inode *efs_alloc_inode(struct super_block *sb) in efs_alloc_inode() argument
115 static int efs_remount(struct super_block *sb, int *flags, char *data) in efs_remount() argument
117 sync_filesystem(sb); in efs_remount()
238 static int efs_validate_super(struct efs_sb_info *sb, struct efs_super *super) { in efs_validate_super() argument
243 sb->fs_magic = be32_to_cpu(super->fs_magic); in efs_validate_super()
244 sb->total_blocks = be32_to_cpu(super->fs_size); in efs_validate_super()
245 sb->first_block = be32_to_cpu(super->fs_firstcg); in efs_validate_super()
246 sb->group_size = be32_to_cpu(super->fs_cgfsize); in efs_validate_super()
247 sb->data_free = be32_to_cpu(super->fs_tfree); in efs_validate_super()
248 sb->inode_free = be32_to_cpu(super->fs_tinode); in efs_validate_super()
249 sb->inode_blocks = be16_to_cpu(super->fs_cgisize); in efs_validate_super()
250 sb->total_groups = be16_to_cpu(super->fs_ncg); in efs_validate_super()
257 struct efs_sb_info *sb; in efs_fill_super() local
261 sb = kzalloc(sizeof(struct efs_sb_info), GFP_KERNEL); in efs_fill_super()
262 if (!sb) in efs_fill_super()
264 s->s_fs_info = sb; in efs_fill_super()
286 sb->fs_start = efs_validate_vh((struct volume_header *) bh->b_data); in efs_fill_super()
289 if (sb->fs_start == -1) { in efs_fill_super()
293 bh = sb_bread(s, sb->fs_start + EFS_SUPER); in efs_fill_super()
299 if (efs_validate_super(sb, (struct efs_super *) bh->b_data)) { in efs_fill_super()
302 sb->fs_start + EFS_SUPER); in efs_fill_super()
333 struct super_block *sb = dentry->d_sb; in efs_statfs() local
334 struct efs_sb_info *sbi = SUPER_INFO(sb); in efs_statfs()
335 u64 id = huge_encode_dev(sb->s_bdev->bd_dev); in efs_statfs()