f2fs: skip scanning free nid bitmap of full NAT blocks
authorChao Yu <yuchao0@huawei.com>
Wed, 1 Mar 2017 09:09:07 +0000 (17:09 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 20 Mar 2017 14:00:17 +0000 (10:00 -0400)
commit586d1492f301982e349797cfb05d9f343002ffa2
tree13371030fa0c79ad4862b004d5302f5f1c4c365a
parent23380b8568b85cd4b7a056891f4dbf131f7b871d
f2fs: skip scanning free nid bitmap of full NAT blocks

This patch adds to account free nids for each NAT blocks, and while
scanning all free nid bitmap, do check count and skip lookuping in
full NAT block.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/debug.c
fs/f2fs/f2fs.h
fs/f2fs/node.c