f2fs: do not issue small discard commands during checkpoint
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 13 Jun 2023 20:35:31 +0000 (13:35 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 26 Jun 2023 13:21:41 +0000 (06:21 -0700)
commit9ac00e7cef106b66611e131f59f61f5ae35cf726
treeb03117ef6a6ea7547e9c4b66983309d7cc11e917
parentc9667b19e2cf13735fe2620f9d97b788897cd4af
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>
fs/f2fs/segment.c