f2fs: fix to update new block address correctly for OPU
authorJia Zhu <zhujia13@huawei.com>
Mon, 26 Nov 2018 18:32:32 +0000 (02:32 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 27 Nov 2018 00:42:03 +0000 (16:42 -0800)
commit73c0a9272a7d2942bcae29d4829bf63277cc57c8
tree74dd7c05ee09426f69e5aeab4ce83165e7472ed0
parente3c59108da8655de78fe59843372b8cfab1a8e33
f2fs: fix to update new block address correctly for OPU

Previously, we allocated a new block address for OPU mode in direct_IO.

But the new address couldn't be assigned to @map->m_pblk correctly.

This patch fix it.

Cc: <stable@vger.kernel.org>
Fixes: 511f52d02f05 ("f2fs: allow out-place-update for direct IO in LFS mode")
Signed-off-by: Jia Zhu <zhujia13@huawei.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c