diff options
| author | Gao Xiang <[email protected]> | 2019-03-25 11:40:07 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-03-26 05:51:17 +0900 |
| commit | 11152496021ea872dac150e0fdad610f6e63773d (patch) | |
| tree | 76306fae2394cad6501f87669b831d1eec4739cb /tools/perf/scripts/python | |
| parent | c8723cb8d06bb1064508055881c1bd0c90a15a18 (diff) | |
staging: erofs: fix error handling when failed to read compresssed data
Complete read error handling paths for all three kinds of
compressed pages:
1) For cache-managed pages, PG_uptodate will be checked since
read_endio will unlock and SetPageUptodate for these pages;
2) For inplaced pages, read_endio cannot SetPageUptodate directly
since it should be used to mark the final decompressed data,
PG_error will be set with page locked for IO error instead;
3) For staging pages, PG_error is used, which is similar to
what we do for inplaced pages.
Fixes: 3883a79abd02 ("staging: erofs: introduce VLE decompression support")
Cc: <[email protected]> # 4.19+
Reviewed-by: Chao Yu <[email protected]>
Signed-off-by: Gao Xiang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions