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)
commitb2b2af8e614b4dcd8aca1369d82ce5ad0461a7b1
tree08b810e4df93a0705cc3c430a327344ae46ebfc8
parent250df6ed274d767da844a5d9f05720b804240197
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