f2fs: optimize the flow of f2fs_map_blocks
authorFan Li <fanofcode.li@samsung.com>
Thu, 17 Dec 2015 05:20:59 +0000 (13:20 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 17 Dec 2015 17:54:42 +0000 (09:54 -0800)
commit7df3a4318d07ba520b4a8eddad29e9ac748b0a19
tree4cacd50cf5624b8b597ad37b5ba953beff8f21a5
parent36b35a0dbe904a06e94154f29db0d0e218420c98
f2fs: optimize the flow of f2fs_map_blocks

check map->m_len right after it changes to avoid excess call
to update dnode_of_data.

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