aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 2b9dc96ec43e..64067de70c6f 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -1631,11 +1631,14 @@ static loff_t ext4_max_size(int bits)
1631 upper_limit >>= (bits - 9); 1631 upper_limit >>= (bits - 9);
1632 1632
1633 } else { 1633 } else {
1634 /* We use 48 bit ext4_inode i_blocks */ 1634 /*
1635 * We use 48 bit ext4_inode i_blocks
1636 * With EXT4_HUGE_FILE_FL set the i_blocks
1637 * represent total number of blocks in
1638 * file system block size
1639 */
1635 upper_limit = (1LL << 48) - 1; 1640 upper_limit = (1LL << 48) - 1;
1636 1641
1637 /* total blocks in file system block size */
1638 upper_limit >>= (bits - 9);
1639 } 1642 }
1640 1643
1641 /* indirect blocks */ 1644 /* indirect blocks */