]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ext3/super.c
Merge branch 'vfs' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/bkl
[karo-tx-linux.git] / fs / ext3 / super.c
index 2e20bd7713372c9f25d2bc052ede1fd8472aef09..37776800910670e2a675e4fd11378f3d8eb35446 100644 (file)
@@ -1842,8 +1842,8 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
                goto failed_mount;
        }
 
-       if (le32_to_cpu(es->s_blocks_count) >
-                   (sector_t)(~0ULL) >> (sb->s_blocksize_bits - 9)) {
+       if (generic_check_addressable(sb->s_blocksize_bits,
+                                     le32_to_cpu(es->s_blocks_count))) {
                ext3_msg(sb, KERN_ERR,
                        "error: filesystem is too large to mount safely");
                if (sizeof(sector_t) < 8)