f2fs: fix to unlock node page when it was truncated
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 13 Mar 2013 08:45:15 +0000 (17:45 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Mon, 18 Mar 2013 12:00:09 +0000 (21:00 +0900)
commit12faafe45477244bc32e2c58f74f7305cc7e84fa
tree6c21e51f3e1471e3182482e7d060be3cb79ecbc6
parent12fc760fd632a96f49e96f519c4aed4eb279bb61
f2fs: fix to unlock node page when it was truncated

If the node page was truncated, its block address became zero.
This means that we don't need to write the node page, but have to unlock
NODE_WRITE, decrease the number of dirty node pages, and then unlock_page
before returning the f2fs_write_node_page with zero.

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