Lines Matching refs:sb
76 v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses, in v9fs_fill_super() argument
79 sb->s_maxbytes = MAX_LFS_FILESIZE; in v9fs_fill_super()
80 sb->s_blocksize_bits = fls(v9ses->maxdata - 1); in v9fs_fill_super()
81 sb->s_blocksize = 1 << sb->s_blocksize_bits; in v9fs_fill_super()
82 sb->s_magic = V9FS_MAGIC; in v9fs_fill_super()
84 sb->s_op = &v9fs_super_ops_dotl; in v9fs_fill_super()
85 sb->s_xattr = v9fs_xattr_handlers; in v9fs_fill_super()
87 sb->s_op = &v9fs_super_ops; in v9fs_fill_super()
88 sb->s_bdi = &v9ses->bdi; in v9fs_fill_super()
90 sb->s_bdi->ra_pages = (VM_MAX_READAHEAD * 1024)/PAGE_CACHE_SIZE; in v9fs_fill_super()
92 sb->s_flags |= MS_ACTIVE | MS_DIRSYNC | MS_NOATIME; in v9fs_fill_super()
94 sb->s_flags |= MS_SYNCHRONOUS; in v9fs_fill_super()
98 sb->s_flags |= MS_POSIXACL; in v9fs_fill_super()
101 save_mount_options(sb, data); in v9fs_fill_super()
116 struct super_block *sb = NULL; in v9fs_mount() local
140 sb = sget(fs_type, NULL, v9fs_set_super, flags, v9ses); in v9fs_mount()
141 if (IS_ERR(sb)) { in v9fs_mount()
142 retval = PTR_ERR(sb); in v9fs_mount()
145 v9fs_fill_super(sb, v9ses, flags, data); in v9fs_mount()
148 sb->s_d_op = &v9fs_cached_dentry_operations; in v9fs_mount()
150 sb->s_d_op = &v9fs_dentry_operations; in v9fs_mount()
152 inode = v9fs_get_inode(sb, S_IFDIR | mode, 0); in v9fs_mount()
163 sb->s_root = root; in v9fs_mount()
183 v9fs_stat2inode(st, d_inode(root), sb); in v9fs_mount()
194 return dget(sb->s_root); in v9fs_mount()
211 deactivate_locked_super(sb); in v9fs_mount()
237 v9fs_umount_begin(struct super_block *sb) in v9fs_umount_begin() argument
241 v9ses = sb->s_fs_info; in v9fs_umount_begin()