Skip to content

Commit 6bb9010

Browse files
chaseyuJaegeuk Kim
authored andcommitted
f2fs: decrease maximum flush retry count in f2fs_enable_checkpoint()
It's rare case that sync_inodes_sb() always skips to flush some drity datas, so it's enough to give extra three more chances to flush data. Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
1 parent 1db4b36 commit 6bb9010

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

fs/f2fs/f2fs.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,8 @@ enum {
699699

700700
#define DEFAULT_RETRY_IO_COUNT 8 /* maximum retry read IO or flush count */
701701

702+
#define MAX_FLUSH_RETRY_COUNT 3 /* maximum flush retry count in f2fs_enable_checkpoint() */
703+
702704
/* IO/non-IO congestion wait timeout value, default: 1 jiffies */
703705
#define DEFAULT_SCHEDULE_TIMEOUT 1
704706

fs/f2fs/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2687,7 +2687,7 @@ static int f2fs_disable_checkpoint(struct f2fs_sb_info *sbi)
26872687

26882688
static int f2fs_enable_checkpoint(struct f2fs_sb_info *sbi)
26892689
{
2690-
int retry = DEFAULT_RETRY_IO_COUNT;
2690+
int retry = MAX_FLUSH_RETRY_COUNT;
26912691
long long start, writeback, end;
26922692
int ret;
26932693
struct f2fs_lock_context lc;

0 commit comments

Comments
 (0)