]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4225cbb33459e80f0a5ce0a1eb2f3acd3eaee19f
treea09893cc38782a49489dfb3ef3d114e7c13e2704
parent6386902c48d101c7af77aa694fe07bedf85d5749
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: 4e4b07fdbb82 ("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