diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-11-13 13:36:26 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:16 -0400 |
commit | e3f2db39b39b69538db5bfbd9e359e99dcf1c986 (patch) | |
tree | bc9b8088586885470de564acb238a7a717324e37 /fs/bcachefs/fs.c | |
parent | 496b7238794ac9209c68fba3592b59576140fa55 (diff) |
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 <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/fs.c')
-rw-r--r-- | fs/bcachefs/fs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/fs.c b/fs/bcachefs/fs.c index 5596081b93c1..4561c60c95e3 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", |