summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/data.c
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2015-03-16 16:54:52 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2015-04-10 15:08:46 -0700
commit83e21db6939dd6ff50a81d54aaef4b44847aefff (patch)
treeef4655d3fc48a89712fdb5baf529fb680810663b /fs/f2fs/data.c
parent78373b7319abdf15050af5b1632c4c8b8b398f33 (diff)
downloadop-kernel-dev-83e21db6939dd6ff50a81d54aaef4b44847aefff.zip
op-kernel-dev-83e21db6939dd6ff50a81d54aaef4b44847aefff.tar.gz
f2fs: avoid wrong f2fs_bug_on when truncating inline_data
This patch removes wrong f2fs_bug_on in truncate_inline_inode. When there is no space, it can happen a corner case where i_isze is over MAX_INLINE_SIZE while its inode is still inline_data. The scenario is 1. write small data into file #A. 2. fill the whole partition to 100%. 3. truncate 4096 on file #A. 4. write data at 8192 offset. --> f2fs_write_begin -> -ENOSPC = f2fs_convert_inline_page -> f2fs_write_failed -> truncate_blocks -> truncate_inline_inode BUG_ON, since i_size is 4096. Reviewed-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/data.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud