diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 36abbdafb26e31cddcd9f4a3ba9f62d445df3d24..0a5388347fca395263e99f797a3bc3b501b2f58e 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -2748,7 +2748,8 @@ static int ext4_writepages(struct address_space *mapping, * We may need to convert up to one extent per block in * the page and we may dirty the inode. */ - rsv_blocks = 1 + (PAGE_SIZE >> inode->i_blkbits); + rsv_blocks = 1 + ext4_chunk_trans_blocks(inode, + PAGE_SIZE >> inode->i_blkbits); } /*