Re: [PATCH] nfs_unlink() again, and trivial nfs_fhget

Trond Myklebust
2003-06-18T23:26:58Z

>>>>> " " == Frank Cusack <fcusack@fcusack.com> writes:

>> There is already code to handle this case in the NFS filesystem
>> code itself.

> No, there isn't.

Yes there is. Look again at nfs_unlink(), following the path

if (atomic_read(&dentry->d_count) > 1)

which is *always* the case if we have sillyrenamed the file. Then look
at the comment "We don't allow a dentry to be silly-renamed twice."

Cheers,
Trond