summaryrefslogtreecommitdiff
path: root/fs/9p/vfs_super.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2020-11-05 11:57:58 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2020-12-07 11:50:46 -0500
commitd983a32e7902da73c52e80b5dda4bc14d16415ae (patch)
tree4159d4364b90f14c8f4a1cf809acf25535a0a80e /fs/9p/vfs_super.c
parent492f2208a8a1788569f67142cab50cc9e13be5ee (diff)
switch inodes to rhashtableinode_work
Diffstat (limited to 'fs/9p/vfs_super.c')
-rw-r--r--fs/9p/vfs_super.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c
index 74df32be4c6a..dd81576fe541 100644
--- a/fs/9p/vfs_super.c
+++ b/fs/9p/vfs_super.c
@@ -60,6 +60,7 @@ static int
v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses,
int flags)
{
+ const struct rhashtable_params *itable_params;
int ret;
sb->s_maxbytes = MAX_LFS_FILESIZE;
@@ -69,13 +70,19 @@ v9fs_fill_super(struct super_block *sb, struct v9fs_session_info *v9ses,
if (v9fs_proto_dotl(v9ses)) {
sb->s_op = &v9fs_super_ops_dotl;
sb->s_xattr = v9fs_xattr_handlers;
+ itable_params = &v9fs_inode_table_dotl_params;
} else {
sb->s_op = &v9fs_super_ops;
sb->s_time_max = U32_MAX;
+ itable_params = &v9fs_inode_table_params;
}
sb->s_time_min = 0;
+ ret = super_setup_inode_table(sb, itable_params);
+ if (ret)
+ return ret;
+
ret = super_setup_bdi(sb);
if (ret)
return ret;