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>
Sun, 8 Apr 2018 11:14:41 +0000 (04:14 -0700)
commit0751f01376d5ad240fac84a949937a9cafa9465e
tree6c03e12eb8c985edf7401cf18d9eb181d2d12131
parent27d9598d4d38fc9854a0d15f28eaf7a5b72b3790
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