Commit e3f2db39 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet
Browse files

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: default avatarKent Overstreet <kent.overstreet@gmail.com>
parent 496b7238
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1669,6 +1669,8 @@ static struct dentry *bch2_mount(struct file_system_type *fs_type,
		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",