f2fs: simplify do_checkpoint
authorChristoph Hellwig <hch@lst.de>
Thu, 19 Jan 2023 06:36:19 +0000 (07:36 +0100)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 2 Feb 2023 21:37:14 +0000 (13:37 -0800)
commit5a4fed7cd97ac3d9708982d3801e132e2a36c126
treefea2f8029122f700cb48787713ed40c2179ea21f
parent2163a691c5f3d30326ff09193c97aec47cec9eba
f2fs: simplify do_checkpoint

For each loop add a local curseg_info pointer insted of looking it up
for each of the three fields.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c