summaryrefslogtreecommitdiffstats
path: root/fs/f2fs/recovery.c
diff options
context:
space:
mode:
authorSheng Yong <shengyong1@huawei.com>2017-11-22 11:23:39 +0100
committerJaegeuk Kim <jaegeuk@kernel.org>2018-01-03 04:27:27 +0100
commit25006645d2e79422b6b3f26e5a82b6cbb5d49a0e (patch)
tree51175b627d73cd92af3ce2be4143f23c92a0a1d0 /fs/f2fs/recovery.c
parentf2fs: introduce sysfs readdir_ra to readahead inode block in readdir (diff)
downloadlinux-25006645d2e79422b6b3f26e5a82b6cbb5d49a0e.tar.xz
linux-25006645d2e79422b6b3f26e5a82b6cbb5d49a0e.zip
f2fs: still write data if preallocate only partial blocks
If there is not enough space left, f2fs_preallocate_blocks may only preallocte partial blocks. As a result, the write operation fails but i_blocks is not 0. To avoid this, f2fs should write data in non-preallocation way and write as many data as the size of i_blocks. Signed-off-by: Sheng Yong <shengyong1@huawei.com> Reviewed-by: Chao Yu <yuchao0@huawei.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/recovery.c')
0 files changed, 0 insertions, 0 deletions