From 30e383fa4d791b8cfe595058695a22e6f04bdb2b Mon Sep 17 00:00:00 2001
From: yangsheng <yangsheng>
Date: Thu, 2 Aug 2007 07:39:17 +0000
Subject: [PATCH] Branch b1_6 b=12415 r=kalpak

Fixed the ext3-unlink-race.patch. It should be against the ext3.
---
 ldiskfs/kernel_patches/patches/ext3-unlink-race.patch | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/ldiskfs/kernel_patches/patches/ext3-unlink-race.patch b/ldiskfs/kernel_patches/patches/ext3-unlink-race.patch
index 96727664fa..12e0352dde 100644
--- a/ldiskfs/kernel_patches/patches/ext3-unlink-race.patch
+++ b/ldiskfs/kernel_patches/patches/ext3-unlink-race.patch
@@ -2,14 +2,14 @@ Index: lustre+chaos/lustre/ldiskfs/namei.c
 ===================================================================
 --- linux-2.6.5-7.283-full.orig/fs/ext3/namei.c
 +++ linux-2.6.5-7.283-full/fs/ext3/namei.c
-@@ -2184,8 +2184,8 @@ static int ldiskfs_link (struct dentry *
-	 * Return -ENOENT if we've raced with unlink and i_nlink is 0.  Doing
-	 * otherwise has the potential to corrupt the orphan inode list.
-	 */
+@@ -2184,8 +2184,8 @@
+ 	 * Return -ENOENT if we've raced with unlink and i_nlink is 0.  Doing
+ 	 * otherwise has the potential to corrupt the orphan inode list.
+ 	 */
 -	if (inode->i_nlink == 0)
 -		return -ENOENT;
 +	//if (inode->i_nlink == 0)
 +	//	return -ENOENT;
  
  retry:
-	handle = ldiskfs_journal_start(dir, LDISKFS_DATA_TRANS_BLOCKS +
+ 	handle = ext3_journal_start(dir, EXT3_DATA_TRANS_BLOCKS +
-- 
GitLab