Lines Matching refs:sb

62 struct inode *iget_locked(struct super_block *sb, unsigned long ino)  in iget_locked()  argument
70 inode->i_sb = sb; in iget_locked()
71 list_add(&inode->i_sb_list, &sb->s_inodes); in iget_locked()
242 struct inode *ubifs_iget(struct super_block *sb, unsigned long inum) in ubifs_iget() argument
247 struct ubifs_info *c = sb->s_fs_info; in ubifs_iget()
279 inode = iget_locked(sb, inum); in ubifs_iget()
443 static struct inode *ubifs_alloc_inode(struct super_block *sb) in ubifs_alloc_inode() argument
635 static int ubifs_sync_fs(struct super_block *sb, int wait) in ubifs_sync_fs() argument
638 struct ubifs_info *c = sb->s_fs_info; in ubifs_sync_fs()
1233 struct super_block *sb = c->vfs_sb; in ubifs_parse_options() local
1241 sb->s_flags |= flag; in ubifs_parse_options()
1986 static void ubifs_put_super(struct super_block *sb) in ubifs_put_super() argument
1989 struct ubifs_info *c = sb->s_fs_info; in ubifs_put_super()
2068 static int ubifs_remount_fs(struct super_block *sb, int *flags, char *data) in ubifs_remount_fs() argument
2071 struct ubifs_info *c = sb->s_fs_info; in ubifs_remount_fs()
2073 sync_filesystem(sb); in ubifs_remount_fs()
2074 dbg_gen("old flags %#lx, new flags %#x", sb->s_flags, *flags); in ubifs_remount_fs()
2244 static int ubifs_fill_super(struct super_block *sb, void *data, int silent) in ubifs_fill_super() argument
2246 struct ubifs_info *c = sb->s_fs_info; in ubifs_fill_super()
2250 c->vfs_sb = sb; in ubifs_fill_super()
2287 sb->s_bdi = &c->bdi; in ubifs_fill_super()
2289 sb->s_fs_info = c; in ubifs_fill_super()
2290 sb->s_magic = UBIFS_SUPER_MAGIC; in ubifs_fill_super()
2291 sb->s_blocksize = UBIFS_BLOCK_SIZE; in ubifs_fill_super()
2292 sb->s_blocksize_bits = UBIFS_BLOCK_SHIFT; in ubifs_fill_super()
2293 sb->s_maxbytes = c->max_inode_sz = key_max_inode_size(c); in ubifs_fill_super()
2295 sb->s_maxbytes = c->max_inode_sz = MAX_LFS_FILESIZE; in ubifs_fill_super()
2296 sb->s_op = &ubifs_super_operations; in ubifs_fill_super()
2298 sb->s_xattr = ubifs_xattr_handlers; in ubifs_fill_super()
2309 root = ubifs_iget(sb, UBIFS_ROOT_INO); in ubifs_fill_super()
2316 sb->s_root = d_make_root(root); in ubifs_fill_super()
2317 if (!sb->s_root) { in ubifs_fill_super()
2322 sb->s_root = NULL; in ubifs_fill_super()
2342 static int sb_test(struct super_block *sb, void *data) in sb_test() argument
2345 struct ubifs_info *c = sb->s_fs_info; in sb_test()
2350 static int sb_set(struct super_block *sb, void *data) in sb_set() argument
2352 sb->s_fs_info = data; in sb_set()
2353 return set_anon_super(sb, NULL); in sb_set()
2456 struct super_block *sb; in ubifs_mount() local
2481 sb = sget(fs_type, sb_test, sb_set, flags, c); in ubifs_mount()
2482 if (IS_ERR(sb)) { in ubifs_mount()
2483 err = PTR_ERR(sb); in ubifs_mount()
2488 if (sb->s_root) { in ubifs_mount()
2489 struct ubifs_info *c1 = sb->s_fs_info; in ubifs_mount()
2498 err = ubifs_fill_super(sb, data, flags & MS_SILENT ? 1 : 0); in ubifs_mount()
2502 sb->s_flags |= MS_ACTIVE | MS_NOATIME; in ubifs_mount()
2509 ubifs_sb = sb; in ubifs_mount()
2512 return dget(sb->s_root); in ubifs_mount()
2517 deactivate_locked_super(sb); in ubifs_mount()