NFS: Drop inode after rename
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 25 Aug 2005 23:25:34 +0000 (16:25 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 23 Sep 2005 16:37:58 +0000 (12:37 -0400)
 When doing a rename on top of an existing file that is not in use,
 the inode of the overwritten file will remain in the icache.

 The fix is to decrement i_nlink of the overwritten inode, like we
 do for unlink, rmdir etc already.

 Problem diagnosed by Olaf Kirch. This patch is a slight variation
 on his fix.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

No differences found