f2fs: Add a segment type check in inplace write
authorYunlei He <heyunlei@huawei.com>
Mon, 26 Mar 2018 09:32:23 +0000 (17:32 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 28 Mar 2018 03:13:54 +0000 (20:13 -0700)
commitd21b0f238adf4641a72f4b0dd4a2b10aa36d09f5
treea03be50b246cc96b66cdc87cb27697da7fea4a58
parent2f52052929842ac21a958ab5f07aab01312cc0b2
f2fs: Add a segment type check in inplace write

This patch add a segment type check in IPU, in
case of something wrong with blkadd in dnode.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/segment.c