aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext3')
-rw-r--r--fs/ext3/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 5dbf4dba03c4..a367dd044280 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -1849,8 +1849,8 @@ static int ext3_fill_super (struct super_block *sb, void *data, int silent)
1849 goto failed_mount; 1849 goto failed_mount;
1850 } 1850 }
1851 1851
1852 if (le32_to_cpu(es->s_blocks_count) > 1852 if (generic_check_addressable(sb->s_blocksize_bits,
1853 (sector_t)(~0ULL) >> (sb->s_blocksize_bits - 9)) { 1853 le32_to_cpu(es->s_blocks_count))) {
1854 ext3_msg(sb, KERN_ERR, 1854 ext3_msg(sb, KERN_ERR,
1855 "error: filesystem is too large to mount safely"); 1855 "error: filesystem is too large to mount safely");
1856 if (sizeof(sector_t) < 8) 1856 if (sizeof(sector_t) < 8)