]> err.no Git - linux-2.6/blobdiff - fs/ext4/super.c
[PATCH] ocfs2: Fix a wrong cluster calculation.
[linux-2.6] / fs / ext4 / super.c
index 6dcbb28dc06d73edd841d6ecb8a1e93570ef4c29..4550b83ab1c99056db69654fc43539e4cce7e7aa 100644 (file)
@@ -541,7 +541,7 @@ static int init_inodecache(void)
                                             sizeof(struct ext4_inode_info),
                                             0, (SLAB_RECLAIM_ACCOUNT|
                                                SLAB_MEM_SPREAD),
-                                            init_once, NULL);
+                                            init_once);
        if (ext4_inode_cachep == NULL)
                return -ENOMEM;
        return 0;
@@ -1283,7 +1283,7 @@ static int ext4_check_descriptors (struct super_block * sb)
                }
                inode_table = ext4_inode_table(sb, gdp);
                if (inode_table < first_block ||
-                   inode_table + sbi->s_itb_per_group > last_block)
+                   inode_table + sbi->s_itb_per_group - 1 > last_block)
                {
                        ext4_error (sb, "ext4_check_descriptors",
                                    "Inode table for group %d"