erofs: fix mis-inplace determination related with noio chain
authorGao Xiang <gaoxiang25@huawei.com>
Sun, 22 Sep 2019 10:04:34 +0000 (18:04 +0800)
committerGao Xiang <gaoxiang25@huawei.com>
Mon, 30 Sep 2019 20:54:45 +0000 (04:54 +0800)
commitdc76ea8c1087b5c44235566ed4be2202d21a8504
treee1a69c8abad8599f4056ece3d13140bc657f52df
parent55252ab72b774119afedfdc6d1f142ffa2a9b818
erofs: fix mis-inplace determination related with noio chain

Fix a recent cleanup patch. noio (bypass) chain is
handled asynchronously against submit chain, therefore
inplace I/O or pagevec cannot be applied to such pages.
Add detailed comment for this as well.

Fixes: 97e86a858bc3 ("staging: erofs: tidy up decompression frontend")
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Link: https://lore.kernel.org/r/20190922100434.229340-1-gaoxiang25@huawei.com
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
fs/erofs/zdata.c