]> git.baikalelectronics.ru Git - kernel.git/commit
fs: factor inode disposal
authorDave Chinner <dchinner@redhat.com>
Tue, 22 Mar 2011 11:23:37 +0000 (22:23 +1100)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 25 Mar 2011 01:16:31 +0000 (21:16 -0400)
commitc9346074be12172416473badcc71e3d849ab9ee5
tree08b810e4df93a0705cc3c430a327344ae46ebfc8
parentf0577ee7bafec798766dc3cb19de3fda2992b28f
fs: factor inode disposal

We have a couple of places that dispose of inodes. factor the
disposal into evict() to isolate this code and make it simpler to
peel away the inode_lock from the code.

While doing this, change the logic flow in iput_final() to separate
the different cases that need to be handled to make the transitions
the inode goes through more obvious.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/inode.c