Whamcloud - gitweb
Branch HEAD
authorjohann <johann>
Tue, 16 Jun 2009 20:59:13 +0000 (20:59 +0000)
committerjohann <johann>
Tue, 16 Jun 2009 20:59:13 +0000 (20:59 +0000)
b=19725
i=adilger
i=girish

ext4_iget() returns an error code now instead of NULL.

lustre/lvfs/fsfilt_ext3.c

index f24135d..dee551b 100644 (file)
@@ -1692,6 +1692,9 @@ static inline struct inode *ext3_iget_inuse(struct super_block *sb,
         if (ext3_test_bit(index, bitmap_bh->b_data))
                 inode = iget(sb, ino);
 
+        if (IS_ERR(inode))
+               /* Newer kernels return an error instead of a NULL pointer */
+                inode = NULL;
         return inode;
 }