ext4: remove EA inode entry from mbcache on inode eviction
Currently we remove EA inode from mbcache as soon as its xattr refcount drops to zero. However there can be pending attempts to reuse the inode and thus refcount handling code has to handle the situation when refcount increases from zero anyway. So save some work and just keep EA inode in mbcache until it is getting evicted. At that moment we are sure following iget() of EA inode will fail anyway (or wait for eviction to finish and load things from the disk again) and so removing mbcache entry at that moment is fine and simplifies the code a bit. CC: stable@vger.kernel.org Fixes: 82939d79 ("ext4: convert to mbcache2") Signed-off-by:Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20220712105436.32204-3-jack@suse.cz Signed-off-by:
Theodore Ts'o <tytso@mit.edu>
parent
3dc96bba
-
mentioned in commit 0b885394
-
mentioned in commit 819d16f7
-
mentioned in commit 458aee4a
-
mentioned in commit 56491d60
-
mentioned in commit 9f966e02
-
mentioned in commit 0e6fbc56
-
mentioned in commit bb337d8d
-
mentioned in commit f0bffdcc
-
mentioned in commit 091f85db
-
mentioned in commit a5f9bd4b
-
mentioned in commit e431b4fb
Please register or sign in to comment