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)
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

diff --cc fs/nfs/inode.c
Simple merge