Whamcloud - gitweb
b=16098
[fs/lustre-release.git] / ldiskfs / kernel_patches / patches / ext3-unlink-race.patch
1 Index: lustre+chaos/lustre/ldiskfs/namei.c
2 ===================================================================
3 --- linux-2.6.5-7.283-full.orig/fs/ext3/namei.c
4 +++ linux-2.6.5-7.283-full/fs/ext3/namei.c
5 @@ -2184,8 +2184,8 @@
6          * Return -ENOENT if we've raced with unlink and i_nlink is 0.  Doing
7          * otherwise has the potential to corrupt the orphan inode list.
8          */
9 -       if (inode->i_nlink == 0)
10 -               return -ENOENT;
11 +       //if (inode->i_nlink == 0)
12 +       //      return -ENOENT;
13  
14  retry:
15         handle = ext3_journal_start(dir, EXT3_DATA_TRANS_BLOCKS +