summaryrefslogtreecommitdiffstats
path: root/fs/jbd2
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2022-07-12 12:54:29 +0200
committerTheodore Ts'o <tytso@mit.edu>2022-08-02 23:56:25 -0400
commit307af6c879377c1c63e71cbdd978201f9c7ee8df (patch)
tree254b1af58915e13b0d5924bb4120089c94ec4645 /fs/jbd2
parent75896339e43176af078509c1fce94ee6df9ca1a7 (diff)
downloadlinux-307af6c879377c1c63e71cbdd978201f9c7ee8df.tar.gz
linux-307af6c879377c1c63e71cbdd978201f9c7ee8df.tar.bz2
linux-307af6c879377c1c63e71cbdd978201f9c7ee8df.zip
mbcache: automatically delete entries from cache on freeing
Use the fact that entries with elevated refcount are not removed from the hash and just move removal of the entry from the hash to the entry freeing time. When doing this we also change the generic code to hold one reference to the cache entry, not two of them, which makes code somewhat more obvious. Signed-off-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20220712105436.32204-10-jack@suse.cz Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/jbd2')
0 files changed, 0 insertions, 0 deletions