f2fs: rebuild nat_bits during umount
authorChao Yu <chao@kernel.org>
Fri, 20 Aug 2021 10:54:59 +0000 (18:54 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 23 Aug 2021 17:25:52 +0000 (10:25 -0700)
commit94c821fb286b545d37549ff30a0c341e066f0d6c
treed850804f7a33320cb19fa27dacc1d191e07ab617
parenta4b6817625e71d5d4aee16cacf7a7fec077c6dbe
f2fs: rebuild nat_bits during umount

If all free_nat_bitmap are available, we can rebuild nat_bits from
free_nat_bitmap entirely during umount, let's make another chance
to reenable nat_bits for image.

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/checkpoint.c
fs/f2fs/f2fs.h
fs/f2fs/node.c