Re: [PATCH] f2fs: free_user_blocks should use reserved_segments instead

2017-08-15 Thread Yunlong Song
Consider this, I have sent another patch v2, please review. The part (overprovision_segments - reserved_segments) can still be used for LFS in some case, e.g., there are lots of invalid block from dirty segments, then the part (overprovision_segments - reserved_segments) can be safely used. So fr

Re: [PATCH] f2fs: free_user_blocks should use reserved_segments instead

2017-08-14 Thread Jaegeuk Kim
On 08/14, Yunlong Song wrote: > The part (overprovision_segments - reserved_segments) can still be used for > LFS, > so free_use_blocks should use reserved_segments instead, rather than use > overprovision_segments. > > Signed-off-by: Yunlong Song > --- > fs/f2fs/gc.h | 4 ++-- > 1 file changed

[PATCH] f2fs: free_user_blocks should use reserved_segments instead

2017-08-14 Thread Yunlong Song
The part (overprovision_segments - reserved_segments) can still be used for LFS, so free_use_blocks should use reserved_segments instead, rather than use overprovision_segments. Signed-off-by: Yunlong Song --- fs/f2fs/gc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/f