Lines Matching refs:sb

36 static void afs_kill_super(struct super_block *sb);
37 static struct inode *afs_alloc_inode(struct super_block *sb);
290 static int afs_test_super(struct super_block *sb, void *data) in afs_test_super() argument
293 struct afs_super_info *as = sb->s_fs_info; in afs_test_super()
298 static int afs_set_super(struct super_block *sb, void *data) in afs_set_super() argument
300 sb->s_fs_info = data; in afs_set_super()
301 return set_anon_super(sb, NULL); in afs_set_super()
307 static int afs_fill_super(struct super_block *sb, in afs_fill_super() argument
310 struct afs_super_info *as = sb->s_fs_info; in afs_fill_super()
318 sb->s_blocksize = PAGE_CACHE_SIZE; in afs_fill_super()
319 sb->s_blocksize_bits = PAGE_CACHE_SHIFT; in afs_fill_super()
320 sb->s_magic = AFS_FS_MAGIC; in afs_fill_super()
321 sb->s_op = &afs_super_ops; in afs_fill_super()
322 sb->s_bdi = &as->volume->bdi; in afs_fill_super()
323 strlcpy(sb->s_id, as->volume->vlocation->vldb.name, sizeof(sb->s_id)); in afs_fill_super()
329 inode = afs_iget(sb, params->key, &fid, NULL, NULL); in afs_fill_super()
337 sb->s_root = d_make_root(inode); in afs_fill_super()
338 if (!sb->s_root) in afs_fill_super()
341 sb->s_d_op = &afs_fs_dentry_operations; in afs_fill_super()
358 struct super_block *sb; in afs_mount() local
410 sb = sget(fs_type, afs_test_super, afs_set_super, flags, as); in afs_mount()
411 if (IS_ERR(sb)) { in afs_mount()
412 ret = PTR_ERR(sb); in afs_mount()
418 if (!sb->s_root) { in afs_mount()
421 ret = afs_fill_super(sb, &params); in afs_mount()
423 deactivate_locked_super(sb); in afs_mount()
426 save_mount_options(sb, new_opts); in afs_mount()
427 sb->s_flags |= MS_ACTIVE; in afs_mount()
430 ASSERTCMP(sb->s_flags, &, MS_ACTIVE); in afs_mount()
437 _leave(" = 0 [%p]", sb); in afs_mount()
438 return dget(sb->s_root); in afs_mount()
448 static void afs_kill_super(struct super_block *sb) in afs_kill_super() argument
450 struct afs_super_info *as = sb->s_fs_info; in afs_kill_super()
451 kill_anon_super(sb); in afs_kill_super()
480 static struct inode *afs_alloc_inode(struct super_block *sb) in afs_alloc_inode() argument