NFS: Fix a readdir/lookup inefficiency.
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 15 Jan 2007 18:56:29 +0000 (13:56 -0500)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 3 Feb 2007 23:35:04 +0000 (15:35 -0800)
commitdf1d5d23d3a1a713c69b0f9ec67c59aeca3ce6b3
tree2d5c3d7ba82c3f7010089414db2f0563ff6bd3e0
parentccfeb506231348a3c60ab0fdb5753a574653e3c0
NFS: Fix a readdir/lookup inefficiency.

Make sure that nfs_readdir_lookup() handles negative dentries correctly.
If d_lookup() returns a negative dentry, then we need to d_drop() that
since readdir shows that it should be positive.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c