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

Trond Myklebust (trond.myklebust@fys.uio.no)
Wed, 18 Jun 2003 16:40:47 -0700


>>>>> " " == 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/