f2fs: use onstack pages instead of pvec
authorFengnan Chang <fengnanchang@gmail.com>
Sun, 31 Jul 2022 03:33:46 +0000 (11:33 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 5 Aug 2022 11:20:55 +0000 (04:20 -0700)
commit01fc4b9a6ed8eacb64e5609bab7ac963e1c7e486
treefd9b29eea4542fca39e99bf244a1af141cee154f
parent4f8219f8aa175d5a46703631abaae745592efe29
f2fs: use onstack pages instead of pvec

Since pvec have 15 pages, it not a multiple of 4, when write compressed
pages, write in 64K as a unit, it will call pagevec_lookup_range_tag
agagin, sometimes this will take a lot of time.
Use onstack pages instead of pvec to mitigate this problem.

Signed-off-by: Fengnan Chang <fengnanchang@gmail.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
fs/f2fs/data.c
fs/f2fs/f2fs.h