f2fs: fix to check available space of CP area correctly in update_ckpt_flags()
authorChao Yu <chao@kernel.org>
Sun, 12 Dec 2021 12:28:12 +0000 (20:28 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 4 Jan 2022 21:20:56 +0000 (13:20 -0800)
commitb702c83e2eaa2fa2d72e957c55c0321535cc8b9f
tree6be1cd79215cdd22ec8fdcb59ba9484ba6bde814
parent3e0203893e0dc4f64e7dc65ff5ac70e970019827
f2fs: fix to check available space of CP area correctly in update_ckpt_flags()

Otherwise, nat_bit area may be persisted across boundary of CP area during
nat_bit rebuilding.

Fixes: 94c821fb286b ("f2fs: rebuild nat_bits during umount")
Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c