f2fs: should put the dnode when NEW_ADDR is detected
authorJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 26 Dec 2013 07:55:22 +0000 (16:55 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Thu, 26 Dec 2013 11:33:06 +0000 (20:33 +0900)
When get_dnode_of_data() in get_data_block() returns a successful dnode, we
should put the dnode.
But, previously, if its data block address is equal to NEW_ADDR, we didn't do
that, resulting in a deadlock condition.
So, this patch splits original error conditions with this case, and then calls
f2fs_put_dnode before finishing the function.

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

diff --cc fs/f2fs/data.c
Simple merge