Re: [PATCH 1/2] f2fs: fix to preallocate block only aligned to 4K

2016-08-25 Thread Chao Yu
Hi Jaegeuk, On 2016/8/24 7:19, Jaegeuk Kim wrote: > Hi Chao, > > There is a bug when ki_pos = 1024, and iov_iter_count(from) = 1024 in > xfstests. > Could you check the below patch to fix your one? Oh, you're right, thanks for fixing it. :) Thanks, > > --- > fs/f2fs/data.c | 11 +--

Re: [PATCH 1/2] f2fs: fix to preallocate block only aligned to 4K

2016-08-23 Thread Jaegeuk Kim
Hi Chao, There is a bug when ki_pos = 1024, and iov_iter_count(from) = 1024 in xfstests. Could you check the below patch to fix your one? --- fs/f2fs/data.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 37a59f7..7c8e219 1006

[PATCH 1/2] f2fs: fix to preallocate block only aligned to 4K

2016-08-20 Thread Chao Yu
In write_begin(), we skip checking dnode block for preallocating block when whole block needs to be updated since we preallocated its block in f2fs_preallocate_blocks, for partial updated block, we will still try to lock its node and do preallocation in write_begin(), so in f2fs_preallocate_blocks