diff options
| author | Sergey Senozhatsky <senozhatsky@chromium.org> | 2024-12-18 15:34:23 +0900 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2025-01-25 20:22:20 -0800 |
| commit | b8d3ff7bb5111c6a88d5672469de445d9b46cf22 (patch) | |
| tree | 3d065e87f4ed872525edac97b15e3fefb5d74fe3 /include/linux | |
| parent | e355b253adbcc45e32acd28926f5c61b34f30c93 (diff) | |
zram: use zram_read_from_zspool() in writeback
We only can read pages from zspool in writeback, zram_read_page() is not
really right in that context not only because it's a more generic function
that handles ZRAM_WB pages, but also because it requires us to unlock slot
between slot flag check and actual page read. Use zram_read_from_zspool()
instead and do slot flags check and page read under the same slot lock.
Link: https://lkml.kernel.org/r/20241218063513.297475-7-senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
