f2fs: don't track new nat entry in nat set
authorChao Yu <yuchao0@huawei.com>
Tue, 20 Mar 2018 15:08:30 +0000 (23:08 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 28 Mar 2018 03:10:29 +0000 (20:10 -0700)
commit780de47cf6cb5f524cd98ec8ffbffc3da5696e17
tree2ce035d06e9b6cf3adadbf56285ed6e43b652db7
parentdf033caf51c01edf3d2bfc61b41a9f1e566743ed
f2fs: don't track new nat entry in nat set

Nat entry set is used only in checkpoint(), and during checkpoint() we
won't flush new nat entry with unallocated address, so we don't need to
add new nat entry into nat set, then nat_entry_set::entry_cnt can
indicate actual entry count we need to flush in checkpoint().

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