f2fs: simplify f2fs_map_blocks
authorChao Yu <chao2.yu@samsung.com>
Tue, 26 Jan 2016 07:37:38 +0000 (15:37 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 23 Feb 2016 00:07:23 +0000 (16:07 -0800)
commit4fe71e88bf681359fdbc99dc74920b38f018f89d
tree09d3ae4c5b9f0171e5a88314661945a94cf8a2ce
parent8f1dbbbbdfe9bada7e2f8041e07c6373f787c043
f2fs: simplify f2fs_map_blocks

In f2fs_map_blocks, we use duplicated codes to handle first block mapping
and the following blocks mapping, it's unnecessary. This patch simplifies
f2fs_map_blocks to avoid using copied codes.

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