f2fs: do not issue small discard commands during checkpoint
If there're huge # of small discards, this will increase checkpoint latency insanely. Let's issue small discards only by trim. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
parent
c9667b19e2
commit
9ac00e7cef
1 changed files with 1 additions and 1 deletions
|
@ -2193,7 +2193,7 @@ find_next:
|
||||||
len = next_pos - cur_pos;
|
len = next_pos - cur_pos;
|
||||||
|
|
||||||
if (f2fs_sb_has_blkzoned(sbi) ||
|
if (f2fs_sb_has_blkzoned(sbi) ||
|
||||||
(force && len < cpc->trim_minlen))
|
!force || len < cpc->trim_minlen)
|
||||||
goto skip;
|
goto skip;
|
||||||
|
|
||||||
f2fs_issue_discard(sbi, entry->start_blkaddr + cur_pos,
|
f2fs_issue_discard(sbi, entry->start_blkaddr + cur_pos,
|
||||||
|
|
Loading…
Add table
Reference in a new issue