aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index 18a16191249a..0e9466f9e767 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -3075,8 +3075,9 @@ ext4_mb_normalize_request(struct ext4_allocation_context *ac,
3075 (23 - bsbits)) << 23; 3075 (23 - bsbits)) << 23;
3076 size = 8 * 1024 * 1024; 3076 size = 8 * 1024 * 1024;
3077 } else { 3077 } else {
3078 start_off = (loff_t)ac->ac_o_ex.fe_logical << bsbits; 3078 start_off = (loff_t) ac->ac_o_ex.fe_logical << bsbits;
3079 size = ac->ac_o_ex.fe_len << bsbits; 3079 size = (loff_t) EXT4_C2B(EXT4_SB(ac->ac_sb),
3080 ac->ac_o_ex.fe_len) << bsbits;
3080 } 3081 }
3081 size = size >> bsbits; 3082 size = size >> bsbits;
3082 start = start_off >> bsbits; 3083 start = start_off >> bsbits;