[f2fs-dev] [RFC PATCH] f2fs-tools: fix blocks allocation direction inside segment

2018-05-08 Thread Junling Zheng
This fixes the block allocation direction from left to right inside one segment despite of the direction of segment allocation. Signed-off-by: Junling Zheng --- fsck/mount.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fsck/mount.c

[f2fs-dev] [PATCH] f2fs: clear discard_wake earlier

2018-05-08 Thread Sheng Yong
If SBI_NEED_FSCK is set, discard_wake will never be cleared. As a result, the condition of wait_event_interruptible_timeout() is always true, which gets discard thread run too frequently. Signed-off-by: Sheng Yong --- fs/f2fs/segment.c | 7 --- 1 file changed, 4

[f2fs-dev] Hung task when executing generic/256 test

2018-05-08 Thread Chandan Rajendra
Hi, The following "Hung task" information is seen when executing generic/256 test on next-20180503. [ 1964.025145] F2FS-fs (loop1): Mounted with checkpoint version = 22d8b4fd [ 2212.833962] INFO: task umount:16199 blocked for more than 120 seconds. [ 2212.835736] Tainted: GW

Re: [f2fs-dev] [PATCH] f2fs: fix to wait IO writeback in __revoke_inmem_pages()

2018-05-08 Thread Chao Yu
On 2018/5/8 11:31, Jaegeuk Kim wrote: > On 05/08, Chao Yu wrote: >> On 2018/5/8 4:46, Jaegeuk Kim wrote: >>> On 04/27, Chao Yu wrote: On 2018/4/27 0:36, Jaegeuk Kim wrote: > On 04/26, Chao Yu wrote: >> On 2018/4/26 23:48, Jaegeuk Kim wrote: >>> On 04/26, Chao Yu wrote:

[f2fs-dev] [PATCH] f2fs: fix to let checkpoint guarantee atomic page persistence

2018-05-08 Thread Chao Yu
1. thread A: commit_inmem_pages submit data into block layer, but haven't waited it writeback. 2. thread A: commit_inmem_pages update related node. 3. thread B: do checkpoint, flush all nodes to disk. 4. SPOR Then, atomic file becomes corrupted since nodes is flushed before data. This patch