NFS: Clean up nfs_refresh_inode() and nfs_post_op_update_inode()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Sun, 5 Oct 2008 16:07:23 +0000 (12:07 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 7 Oct 2008 21:29:49 +0000 (17:29 -0400)
commit870a5be8b92151332da65021b7b21104e9c1de07
tree041ec4a0c5304ff74b7b1cd2c09a7d92e08d6cac
parent7973c1f15a0687f47ed70e591e4642d6fc4334d0
NFS: Clean up nfs_refresh_inode() and nfs_post_op_update_inode()

Try to avoid taking and dropping the inode->i_lock more than once. Do so by
moving the code in nfs_refresh_inode() that needs to be done under the
spinlock into a function nfs_refresh_inode_locked(), and then having both
nfs_refresh_inode() and nfs_post_op_update_inode() call it directly.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/inode.c