mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-22 09:22:37 +00:00
f2fs: add f2fs_balance_fs for expand_inode_data
This patch adds f2fs_balance_fs in expand_inode_data to avoid allocation failure with segment. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
002a41cabb
commit
497a0930bb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user