f2fs: fix to check current blkaddr in __allocate_data_blocks
authorChao Yu <chao2.yu@samsung.com>
Thu, 12 Mar 2015 09:04:24 +0000 (17:04 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 10 Apr 2015 22:08:42 +0000 (15:08 -0700)
commitd6d4f1cb912d9bcf988a529d0934568d4550f7b5
treea7471ce31d7af5fb1534ee8ecd619ba98fff1696
parent0bfcfcca3d4351f129b8c8a73c114c7ffa99228e
f2fs: fix to check current blkaddr in __allocate_data_blocks

In __allocate_data_blocks, we should check current blkaddr which is located at
ofs_in_node of dnode page instead of checking first blkaddr all the time.
Otherwise we can only allocate one blkaddr in each dnode page. Fix it.

Signed-off-by: Chao Yu <chao2.yu@samsung.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c