Whamcloud - gitweb
Revert debug patch from b=21364
authorJohann Lombardi <johann@sun.com>
Tue, 2 Feb 2010 10:49:29 +0000 (11:49 +0100)
committerJohann Lombardi <johann@sun.com>
Tue, 2 Feb 2010 10:49:29 +0000 (11:49 +0100)
This reverts commit 818de83d3200ae48dae7096500ba0118b8f95976.
I inadvertently committed my debug patch.

ldiskfs/kernel_patches/patches/ext4-bug21364-debug.patch [deleted file]
ldiskfs/kernel_patches/series/ldiskfs-2.6-sles11.series
lustre/obdfilter/filter.c

diff --git a/ldiskfs/kernel_patches/patches/ext4-bug21364-debug.patch b/ldiskfs/kernel_patches/patches/ext4-bug21364-debug.patch
deleted file mode 100644 (file)
index 6406b2d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: linux-stage/fs/ext4/inode.c
-===================================================================
---- linux-stage.orig/fs/ext4/inode.c
-+++ linux-stage/fs/ext4/inode.c
-@@ -4145,6 +4145,8 @@ struct inode *ext4_iget(struct super_blo
-               if (inode->i_mode == 0 ||
-                   !(EXT4_SB(inode->i_sb)->s_mount_state & EXT4_ORPHAN_FS)) {
-                       /* this inode is deleted */
-+                      printk("ext4_iget() returns ESTALE for inode %lu (%p)"
-+                             "\n", ino, inode);
-                       brelse(bh);
-                       ret = -ESTALE;
-                       goto bad_inode;
index b6c989b..bcf9753 100644 (file)
@@ -33,4 +33,3 @@ ext4-dynlocks-common-sles11.patch
 ext4-dynlocks-2.6-rhel5.patch
 ext4-hash-indexed-dir-dotdot-update.patch
 ext4-disable-write-bar-by-default.patch
-ext4-bug21364-debug.patch
index a12a632..86a7f5f 100644 (file)
@@ -1433,9 +1433,8 @@ struct dentry *filter_fid2dentry(struct obd_device *obd,
         if (dir_dentry == NULL)
                 filter_parent_unlock(dparent);
         if (IS_ERR(dchild)) {
-                CERROR("%s: child lookup error for object O/%.*s/%s (%ld)\n",
-                       obd->obd_name, dparent->d_name.len, dparent->d_name.name,
-                       name, PTR_ERR(dchild));
+                CERROR("%s: child lookup error %ld\n", obd->obd_name,
+                       PTR_ERR(dchild));
                 RETURN(dchild);
         }
 
@@ -3354,10 +3353,6 @@ static int filter_precreate(struct obd_device *obd, struct obdo *oa,
                 cleanup_phase = 1;      /* filter_parent_unlock(dparent) */
 
                 dchild = filter_fid2dentry(obd, dparent, group, next_id);
-                if (IS_ERR(dchild) && PTR_ERR(dchild) == -ESTALE) {
-                        CERROR("parent %p child %p\n", dparent, dchild);
-                        LBUG();
-                }
                 if (IS_ERR(dchild))
                         GOTO(cleanup, rc = PTR_ERR(dchild));
                 cleanup_phase = 2;      /* f_dput(dchild) */