瀏覽代碼

[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>
Barry Naujok 17 年之前
父節點
當前提交
866d5dc974
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      fs/xfs/linux-2.6/xfs_iops.c

+ 5 - 1
fs/xfs/linux-2.6/xfs_iops.c

@@ -413,7 +413,11 @@ xfs_vn_ci_lookup(
 	if (unlikely(error)) {
 	if (unlikely(error)) {
 		if (unlikely(error != ENOENT))
 		if (unlikely(error != ENOENT))
 			return ERR_PTR(-error);
 			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;
 		return NULL;
 	}
 	}