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

From: Trond Myklebust (trond.myklebust@fys.uio.no)
Date: Wed Jun 18 2003 - 18:40:47 EST


>>>>> " " == 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/



This archive was generated by hypermail 2b29 : Mon Jun 23 2003 - 22:00:27 EST