f2fs: fix to wait on page writeback before updating page
authorChao Yu <yuchao0@huawei.com>
Thu, 21 Jun 2018 14:38:28 +0000 (22:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2018 20:43:44 +0000 (22:43 +0200)
commit9d54a48ef29663ede2b012e0b1cda39e1eb36b20
tree5e65eccc4232004c42cf4e93aa4cab2b9fe05d57
parent9e850bc7691a46ae2abee995631d7361a7b71012
f2fs: fix to wait on page writeback before updating page

[ Upstream commit 6aead1617b3adf2b7e2c56f0f13e4e0ee42ebb4a ]

In error path of f2fs_move_rehashed_dirents, inode page could be writeback
state, so we should wait on inode page writeback before updating it.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/inline.c