aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/inode.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2005-10-18 17:20:19 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-10-18 17:20:19 -0400
commitcae7a073a4c5484cc5713eab606bf54b46724ab3 (patch)
treee5cdcf0376da5b04bca9bbbf8f226abe13f33275 /fs/nfs/inode.c
parentcdce5d6b94b6182f6d8a5b7b52923933e98cbc92 (diff)
NFSv4: Return delegation upon rename or removal of file.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r--fs/nfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
index d7abaa00473a..6b0f7fe6bd1d 100644
--- a/fs/nfs/inode.c
+++ b/fs/nfs/inode.c
@@ -1671,8 +1671,7 @@ static void nfs4_clear_inode(struct inode *inode)
1671 struct nfs_inode *nfsi = NFS_I(inode); 1671 struct nfs_inode *nfsi = NFS_I(inode);
1672 1672
1673 /* If we are holding a delegation, return it! */ 1673 /* If we are holding a delegation, return it! */
1674 if (nfsi->delegation != NULL) 1674 nfs_inode_return_delegation(inode);
1675 nfs_inode_return_delegation(inode);
1676 /* First call standard NFS clear_inode() code */ 1675 /* First call standard NFS clear_inode() code */
1677 nfs_clear_inode(inode); 1676 nfs_clear_inode(inode);
1678 /* Now clear out any remaining state */ 1677 /* Now clear out any remaining state */