f2fs: write missing last sum blk of file pinning section
authorDaeho Jeong <daehojeong@google.com>
Tue, 9 Apr 2024 23:34:11 +0000 (16:34 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 12 Apr 2024 20:58:35 +0000 (20:58 +0000)
commitb084403cfc3295b59a1b6bcc94efaf870fc3c2c9
treee9373000c4a5b7093e62391c0d73023046041863
parent3bdb7f161697e2d5123b89fe1778ef17a44858e7
f2fs: write missing last sum blk of file pinning section

While do not allocating a new section in advance for file pinning area, I
missed that we should write the sum block for the last segment of a file
pinning section.

Fixes: 9703d69d9d15 ("f2fs: support file pinning for zoned devices")
Signed-off-by: Daeho Jeong <daehojeong@google.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c