f2fs: check dirty_nat_cnt before flushing nat entries in journal
authorChangman Lee <cm224.lee@samsung.com>
Tue, 25 Nov 2014 03:44:23 +0000 (12:44 +0900)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 26 Nov 2014 01:26:34 +0000 (17:26 -0800)
commit20d047c87621090152c89f9581f78a69b02e0e35
tree48621d39317b6b0ccf73370e97355e220fd235d1
parent5f72739583a29bfaa57448ec2c9b122995d0ae4f
f2fs: check dirty_nat_cnt before flushing nat entries in journal

It's meaningless to check dirty_nat_cnt after re-dirtying nat entries in
journal. And although there are rooms for dirty nat entires if dirty_nat_cnt
is zero, it's also meaningless to check __has_cursum_space.

Signed-off-by: Changman Lee <cm224.lee@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/node.c