From: Kent Overstreet Date: Sat, 13 Nov 2021 18:36:26 +0000 (-0500) Subject: bcachefs: Tweak vfs cache shrinker behaviour X-Git-Tag: v6.7-rc1~201^2~1295 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e3f2db39b39b69538db5bfbd9e359e99dcf1c986;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Tweak vfs cache shrinker behaviour In bcachefs, inodes and dentries are also cached - more compactly - by the btree node cache, they don't require seeks to recreate. Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index 5596081b93c1a..4561c60c95e33 100644 --- a/fs/bcachefs/fs.c +++ b/fs/bcachefs/fs.c @@ -1669,6 +1669,8 @@ got_sb: sb->s_flags |= SB_POSIXACL; #endif + sb->s_shrink.seeks = 0; + vinode = bch2_vfs_inode_get(c, BCACHEFS_ROOT_SUBVOL_INUM); if (IS_ERR(vinode)) { bch_err(c, "error mounting: error getting root inode %i",