diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 2a91a7d1760cae25b2e90c7668b92c7ce6a74931..208f1a9bd569b6d2c7afafa20c5a5dff9f9b39d1 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -672,6 +672,8 @@ static int expand_inode_data(struct inode *inode, loff_t offset, loff_t off_start, off_end; int ret = 0; + f2fs_balance_fs(sbi); + ret = inode_newsize_ok(inode, (len + offset)); if (ret) return ret;