Re: [f2fs-dev] [PATCH] resize.f2fs: skip cursegs when finding next free block

2018-06-04 Thread Junling Zheng
On 2018/6/5 4:55, Jaegeuk Kim wrote: > On 06/04, Sheng Yong wrote: >> resize.f2fs (f2fs_defragment) tries to migrate blocks to new positions. >> However, if a curseg is selected, and f2fs_defragment is broken by any >> error, curseg->next_blkoff is left not updated. >> >> To avoid this, we skip

Re: [f2fs-dev] [PATCH] resize.f2fs: skip cursegs when finding next free block

2018-06-04 Thread Sheng Yong
Hi, Jaegeuk On 2018/6/5 4:55, Jaegeuk Kim wrote: On 06/04, Sheng Yong wrote: resize.f2fs (f2fs_defragment) tries to migrate blocks to new positions. However, if a curseg is selected, and f2fs_defragment is broken by any error, curseg->next_blkoff is left not updated. To avoid this, we skip

Re: [f2fs-dev] [PATCH] resize.f2fs: skip cursegs when finding next free block

2018-06-04 Thread Jaegeuk Kim
On 06/04, Sheng Yong wrote: > resize.f2fs (f2fs_defragment) tries to migrate blocks to new positions. > However, if a curseg is selected, and f2fs_defragment is broken by any > error, curseg->next_blkoff is left not updated. > > To avoid this, we skip cursegs when finding next free block. Don't

[f2fs-dev] [PATCH] f2fs: fix to clear FI_VOLATILE_FILE correctly

2018-06-04 Thread Chao Yu
From: Chao Yu Thread AThread B - f2fs_release_file - clear_inode_flag(FI_VOLATILE_FILE) - wb_writeback - writeback_sb_inodes - __writeback_single_inode

[f2fs-dev] [PATCH 2/2] f2fs: let sync node IO interrupt async one

2018-06-04 Thread Chao Yu
From: Chao Yu Although mixed sync/async IOs can have continuous LBA, as they have different IO priority, block IO scheduler will add them into different queues and commit them separately, result in splited IOs which causes wrose performance. This patch gives high priority to synchronous IO of

[f2fs-dev] [PATCH 1/2] f2fs: don't change wbc->sync_mode

2018-06-04 Thread Chao Yu
From: Chao Yu We should never falsify wbc->sync_mode passed from mm, otherwise mm can trigger writeback with wrong IO priority. Signed-off-by: Chao Yu --- fs/f2fs/node.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/f2fs/node.c b/fs/f2fs/node.c index 513f03d823b6..64ad5466887f 100644

[f2fs-dev] [PATCH v2 2/2] f2fs: fix to update mtime correctly

2018-06-04 Thread Chao Yu
From: Chao Yu If we change system time to the past, get_mtime() will return a overflowed time, and SIT_I(sbi)->max_mtime will be udpated incorrectly, this patch fixes the two issues. Signed-off-by: Chao Yu --- v2: - fix to correct return value of get_mtime(). fs/f2fs/checkpoint.c | 2 +-

Re: [f2fs-dev] [PATCH] resize.f2fs: skip cursegs when finding next free block

2018-06-04 Thread Chao Yu
On 2018/6/4 16:14, Sheng Yong wrote: > resize.f2fs (f2fs_defragment) tries to migrate blocks to new positions. > However, if a curseg is selected, and f2fs_defragment is broken by any > error, curseg->next_blkoff is left not updated. > > To avoid this, we skip cursegs when finding next free

Re: [f2fs-dev] [PATCH RFC] Revert "f2fs: avoid cpu lockup"

2018-06-04 Thread Chao Yu
On 2018/6/2 2:35, Jaegeuk Kim wrote: > On 06/01, heyunlei wrote: >> >> >>> -Original Message- >>> From: Jaegeuk Kim [mailto:jaeg...@kernel.org] >>> Sent: Friday, June 01, 2018 1:56 AM >>> To: heyunlei >>> Cc: Yuchao (T); linux-f2fs-devel@lists.sourceforge.net; Wangbintian; >>>

[f2fs-dev] [PATCH] resize.f2fs: skip cursegs when finding next free block

2018-06-04 Thread Sheng Yong
resize.f2fs (f2fs_defragment) tries to migrate blocks to new positions. However, if a curseg is selected, and f2fs_defragment is broken by any error, curseg->next_blkoff is left not updated. To avoid this, we skip cursegs when finding next free block. Signed-off-by: Sheng Yong --- fsck/f2fs.h