diff options
author | Jan Kara <jack@suse.cz> | 2022-07-12 13:54:21 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-14 12:16:43 +0300 |
commit | 27c08673978ebf31d56a822b3fb3aa74c8e1e4f2 (patch) | |
tree | 7560fd56b04247f8e9acaf425e25a2a06135c97f /fs/qnx6 | |
parent | fb59d12ae7f9f7584e6702d4c2e26ce10210af3d (diff) | |
download | linux-27c08673978ebf31d56a822b3fb3aa74c8e1e4f2.tar.xz |
mbcache: add functions to delete entry if unused
[ Upstream commit 3dc96bba65f53daa217f0a8f43edad145286a8f5 ]
Add function mb_cache_entry_delete_or_get() to delete mbcache entry if
it is unused and also add a function to wait for entry to become unused
- mb_cache_entry_wait_unused(). We do not share code between the two
deleting function as one of them will go away soon.
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-2-jack@suse.cz
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Stable-dep-of: a44e84a9b776 ("ext4: fix deadlock due to mbcache entry corruption")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/qnx6')
0 files changed, 0 insertions, 0 deletions