Whamcloud - gitweb
Branch b1_8
authorjohann <johann>
Thu, 4 Jun 2009 07:35:31 +0000 (07:35 +0000)
committerjohann <johann>
Thu, 4 Jun 2009 07:35:31 +0000 (07:35 +0000)
b=19725
i=adilger
i=girish

unlike ext3_iget(), ext4_iget() returns an error instead of a NULL pointer

lustre/lvfs/fsfilt_ext3.c

index 35cacb6..4733d05 100644 (file)
@@ -1721,6 +1721,9 @@ static inline struct inode *ext3_iget_inuse(struct super_block *sb,
 #else
                 inode = ext3_iget(sb, ino);
 #endif
+        if (IS_ERR(inode))
+               /* Newer kernels return an error instead of a NULL pointer */
+                inode = NULL;
         return inode;
 }