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>
Sun, 8 Apr 2018 11:14:37 +0000 (04:14 -0700)
commit42a34ff76240f42b148f72318d199578daa87384
tree6132146cea51250b24effc02668744b4de96599d
parent14040505a62049efbbbbf4dd121105695b14bd2a
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