f2fs: simplify __allocate_data_blocks
authorChao Yu <chao2.yu@samsung.com>
Tue, 26 Jan 2016 07:38:29 +0000 (15:38 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000 (16:07 -0800)
commit5b8db7fada07e67bb2075a39320f0abe7fe0ed77
tree55b2ab5a30adcf3335a8a85dd862bf3e81b92df9
parent4fe71e88bf681359fdbc99dc74920b38f018f89d
f2fs: simplify __allocate_data_blocks

This patch uses existing function f2fs_map_block to simplify implementation
of __allocate_data_blocks.

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