summaryrefslogtreecommitdiff
path: root/fs/xfs
diff options
context:
space:
mode:
authorBarry Naujok <bnaujok@sgi.com>2008-05-22 17:21:40 +1000
committerNiv Sardi <xaiki@debian.org>2008-07-28 16:58:44 +1000
commit866d5dc974682c6247d5fde94dbc6545f864e7d7 (patch)
tree616888e514542fc6b666e1fdbf7adbbcf2704d61 /fs/xfs
parentd3689d7687dbbc46c5004557d53349f6952fbc93 (diff)
[XFS] Remove d_add call for an ENOENT lookup return code
SGI-PV: 981521 SGI-Modid: xfs-linux-melb:xfs-kern:31214a Signed-off-by: Barry Naujok <bnaujok@sgi.com> Signed-off-by: David Chinner <dgc@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r--fs/xfs/linux-2.6/xfs_iops.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_iops.c b/fs/xfs/linux-2.6/xfs_iops.c
index 9f0f8ee8d44d..62330f283951 100644
--- a/fs/xfs/linux-2.6/xfs_iops.c
+++ b/fs/xfs/linux-2.6/xfs_iops.c
@@ -413,7 +413,11 @@ xfs_vn_ci_lookup(
if (unlikely(error)) {
if (unlikely(error != ENOENT))
return ERR_PTR(-error);
- d_add(dentry, NULL);
+ /*
+ * call d_add(dentry, NULL) here when d_drop_negative_children
+ * is called in xfs_vn_mknod (ie. allow negative dentries
+ * with CI filesystems).
+ */
return NULL;
}