mbcache: don't reclaim used entries
authorJan Kara <jack@suse.cz>
Tue, 12 Jul 2022 10:54:20 +0000 (12:54 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Aug 2022 03:56:25 +0000 (23:56 -0400)
commit58318914186c157477b978b1739dfe2f1b9dc0fe
treea09893cc38782a49489dfb3ef3d114e7c13e2704
parentb8a04fe77ef1360fbf73c80fddbdfeaa9407ed1b
mbcache: don't reclaim used entries

Do not reclaim entries that are currently used by somebody from a
shrinker. Firstly, these entries are likely useful. Secondly, we will
need to keep such entries to protect pending increment of xattr block
refcount.

CC: stable@vger.kernel.org
Fixes: 82939d7999df ("ext4: convert to mbcache2")
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220712105436.32204-1-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/mbcache.c