f2fs: fix to reset variable correctlly
authorFan Li <fanofcode.li@samsung.com>
Tue, 15 Dec 2015 09:02:41 +0000 (17:02 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 16 Dec 2015 16:58:04 +0000 (08:58 -0800)
commita1c1e9b74ff380176bf3862c764061e0a7efd9bb
tree8647843accad264539c1aba951b6e2dc426d1a95
parent6ad7609a183a250f1a346c7edfcbeaa30a29cfcc
f2fs: fix to reset variable correctlly

f2fs_map_blocks will set m_flags and m_len to 0, so we don't need to
reset m_flags ourselves, but have to reset m_len to correct value
before use it again.

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/file.c