f2fs: fix to mark the checkpointed nat entry correctly
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Fri, 21 Feb 2014 04:17:22 +0000 (13:17 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 24 Feb 2014 07:00:40 +0000 (16:00 +0900)
commitfffc2a00fc01b781c1e3b9541e3e0f270c50ce90
treeef9baeee5d33b51acda782320c7b47299345fec3
parent6437d1b0adb46f29aafcbf10950a89211028ca09
f2fs: fix to mark the checkpointed nat entry correctly

The nat cache entry maintains a status whether it is checkpointed or not.
So, if a new cache entry is loaded from the last checkpoint,
nat_entry->checkpointed should be true.
If the cache entry is modified as being dirty, nat_entry->checkpoint should
be false.

Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/node.c
fs/f2fs/node.h