Lines Matching refs:sb
79 static int squashfs_fill_super(struct super_block *sb, void *data, int silent) in squashfs_fill_super() argument
93 sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL); in squashfs_fill_super()
94 if (sb->s_fs_info == NULL) { in squashfs_fill_super()
98 msblk = sb->s_fs_info; in squashfs_fill_super()
100 msblk->devblksize = sb_min_blocksize(sb, SQUASHFS_DEVBLK_SIZE); in squashfs_fill_super()
112 sblk = squashfs_read_table(sb, SQUASHFS_START, sizeof(*sblk)); in squashfs_fill_super()
124 sb->s_magic = le32_to_cpu(sblk->s_magic); in squashfs_fill_super()
125 if (sb->s_magic != SQUASHFS_MAGIC) { in squashfs_fill_super()
128 bdevname(sb->s_bdev, b)); in squashfs_fill_super()
144 i_size_read(sb->s_bdev->bd_inode)) in squashfs_fill_super()
181 TRACE("Found valid superblock on %s\n", bdevname(sb->s_bdev, b)); in squashfs_fill_super()
198 sb->s_maxbytes = MAX_LFS_FILESIZE; in squashfs_fill_super()
199 sb->s_flags |= MS_RDONLY; in squashfs_fill_super()
200 sb->s_op = &squashfs_super_ops; in squashfs_fill_super()
217 msblk->stream = squashfs_decompressor_setup(sb, flags); in squashfs_fill_super()
225 sb->s_xattr = squashfs_xattr_handlers; in squashfs_fill_super()
233 msblk->xattr_id_table = squashfs_read_xattr_id_table(sb, in squashfs_fill_super()
246 msblk->id_table = squashfs_read_id_index_table(sb, in squashfs_fill_super()
263 msblk->inode_lookup_table = squashfs_read_inode_lookup_table(sb, in squashfs_fill_super()
273 sb->s_export_op = &squashfs_export_ops; in squashfs_fill_super()
288 msblk->fragment_index = squashfs_read_fragment_index_table(sb, in squashfs_fill_super()
312 root = new_inode(sb); in squashfs_fill_super()
326 sb->s_root = d_make_root(root); in squashfs_fill_super()
327 if (sb->s_root == NULL) { in squashfs_fill_super()
346 kfree(sb->s_fs_info); in squashfs_fill_super()
347 sb->s_fs_info = NULL; in squashfs_fill_super()
374 static int squashfs_remount(struct super_block *sb, int *flags, char *data) in squashfs_remount() argument
376 sync_filesystem(sb); in squashfs_remount()
382 static void squashfs_put_super(struct super_block *sb) in squashfs_put_super() argument
384 if (sb->s_fs_info) { in squashfs_put_super()
385 struct squashfs_sb_info *sbi = sb->s_fs_info; in squashfs_put_super()
395 kfree(sb->s_fs_info); in squashfs_put_super()
396 sb->s_fs_info = NULL; in squashfs_put_super()
466 static struct inode *squashfs_alloc_inode(struct super_block *sb) in squashfs_alloc_inode() argument