Files
linux-apfs/fs
Dave Chinner f283c86afe fs: remove inode_lock from iput_final and prune_icache
Now that inode state changes are protected by the inode->i_lock and
the inode LRU manipulations by the inode_lru_lock, we can remove the
inode_lock from prune_icache and the initial part of iput_final().

instead of using the inode_lock to protect the inode during
iput_final, use the inode->i_lock instead. This protects the inode
against new references being taken while we change the inode state
to I_FREEING, as well as preventing prune_icache from grabbing the
inode while we are manipulating it. Hence we no longer need the
inode_lock in iput_final prior to setting I_FREEING on the inode.

For prune_icache, we no longer need the inode_lock to protect the
LRU list, and the inodes themselves are protected against freeing
races by the inode->i_lock. Hence we can lift the inode_lock from
prune_icache as well.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2011-03-24 21:16:32 -04:00
..
2011-03-17 14:02:57 +01:00
2011-02-25 11:12:37 -08:00
2011-02-21 22:31:47 +00:00
2011-03-10 13:22:34 -06:00
2011-03-03 01:28:17 -05:00
2011-01-14 09:23:36 -08:00
2011-03-02 22:27:36 +01:00
2011-03-17 14:02:57 +01:00
2011-03-21 00:45:50 -04:00
2011-03-17 14:02:57 +01:00
2011-03-03 01:28:16 -05:00
2011-03-23 19:46:19 -07:00
2011-03-23 19:46:19 -07:00
2011-03-21 00:16:09 -04:00
2011-03-15 02:21:44 -04:00
2011-03-21 00:16:08 -04:00
2011-01-13 17:32:32 -08:00
2011-03-21 01:10:41 -04:00
2011-03-14 09:15:28 -04:00