projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9667b1
)
f2fs: do not issue small discard commands during checkpoint
author
Jaegeuk Kim
<jaegeuk@kernel.org>
Tue, 13 Jun 2023 20:35:31 +0000
(13:35 -0700)
committer
Jaegeuk Kim
<jaegeuk@kernel.org>
Mon, 26 Jun 2023 13:21:41 +0000
(06:21 -0700)
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>
fs/f2fs/segment.c
patch
|
blob
|
history
diff --git
a/fs/f2fs/segment.c
b/fs/f2fs/segment.c
index
8c7af8b
..
0457d62
100644
(file)
--- a/
fs/f2fs/segment.c
+++ b/
fs/f2fs/segment.c
@@
-2193,7
+2193,7
@@
find_next:
len = next_pos - cur_pos;
if (f2fs_sb_has_blkzoned(sbi) ||
-
(force && len < cpc->trim_minlen)
)
+
!force || len < cpc->trim_minlen
)
goto skip;
f2fs_issue_discard(sbi, entry->start_blkaddr + cur_pos,