Re: [f2fs-dev] [PATCH 2/3] f2fs: still write data if preallocate only partial blocks

2017-11-23 Thread Chao Yu
On 2017/11/22 18:23, Sheng Yong wrote: > 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

[f2fs-dev] [PATCH 2/3] f2fs: still write data if preallocate only partial blocks

2017-11-22 Thread Sheng Yong
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