From: Trond Myklebust Date: Tue, 3 Jan 2006 08:55:33 +0000 (+0100) Subject: NFSv4: Ensure that we return the delegation on the target of a rename too. X-Git-Tag: v2.6.16-rc1~935^2~4^2~27 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=24174119c73983d5217da8f56a12c79a9b57e056;p=linux-2.6-omap-h63xx.git NFSv4: Ensure that we return the delegation on the target of a rename too. Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index c0d1a214572..e9255198f76 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -1550,8 +1550,10 @@ go_ahead: } nfs_inode_return_delegation(old_inode); - if (new_inode) + if (new_inode != NULL) { + nfs_inode_return_delegation(new_inode); d_delete(new_dentry); + } nfs_begin_data_update(old_dir); nfs_begin_data_update(new_dir);