f2fs: should check the node page was truncated first
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 13 Mar 2013 08:49:22 +0000 (17:49 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 20 Mar 2013 09:30:12 +0000 (18:30 +0900)
commit08d8058be6d11bd81f2ed75fc0ecdf55b7685655
tree3fbc2348de9055420a92b6c7171a97f457a16965
parent393ff91f57c87d48ffed30878be6e3e486d3a00a
f2fs: should check the node page was truncated first

Currently, f2fs doesn't reclaim any node pages.
However, if we found that a node page was truncated by checking its block
address with zero during f2fs_write_node_page, we should not skip that node
page and return zero to reclaim it.

Reviewed-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/node.c