Whamcloud - gitweb
Branch b1_6
authoryangsheng <yangsheng>
Fri, 6 Jul 2007 10:22:51 +0000 (10:22 +0000)
committeryangsheng <yangsheng>
Fri, 6 Jul 2007 10:22:51 +0000 (10:22 +0000)
b=<12415>
r=<adilger,green>

ldiskfs/ChangeLog
ldiskfs/kernel_patches/patches/ext3-unlink-race.patch [new file with mode: 0644]
ldiskfs/kernel_patches/series/ldiskfs-2.6-rhel4.series

index 484e1a9..1e27cea 100644 (file)
@@ -1,3 +1,10 @@
 tbd         Cluster File Systems, Inc. <info@clusterfs.com>
        * version 3.0.0
        * Initial release of ldiskfs as a separate package.
+
+Severity   : normal
+Frequency  : rare
+Bugzilla   : 12415
+Description: Updated patchess for new RHEL4 kernel
+Details    : Add patch ext3-unlink-race.patch
+            Updated series file ldiskfs-2.6-rhel4.series
diff --git a/ldiskfs/kernel_patches/patches/ext3-unlink-race.patch b/ldiskfs/kernel_patches/patches/ext3-unlink-race.patch
new file mode 100644 (file)
index 0000000..9672766
--- /dev/null
@@ -0,0 +1,15 @@
+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.
+        */
+-      if (inode->i_nlink == 0)
+-              return -ENOENT;
++      //if (inode->i_nlink == 0)
++      //      return -ENOENT;
+ retry:
+       handle = ldiskfs_journal_start(dir, LDISKFS_DATA_TRANS_BLOCKS +
index afbd3b8..bbb7b56 100644 (file)
@@ -19,3 +19,4 @@ ext3-sector_t-overflow-2.6.9-rhel4.patch
 ext3-check-jbd-errors-2.6.9.patch
 ext3-uninit-2.6.9.patch
 ext3-nanosecond-2.6-rhel4.patch
+ext3-unlink-race.patch