Skip to content

Commit

Permalink
[XFS] Remove d_add call for an ENOENT lookup return code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Barry Naujok authored and Niv Sardi committed Jul 28, 2008
1 parent d3689d7 commit 866d5dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fs/xfs/linux-2.6/xfs_iops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 866d5dc

Please sign in to comment.