zram: fix partial I/O gating on non-4K PAGE_SIZE#940
Conversation
|
Upstream branch: 979c294 |
a7bb5c5 to
5e41a3b
Compare
|
Upstream branch: acb7500 |
5ed859b to
0f6a53e
Compare
5e41a3b to
c3a084b
Compare
|
Upstream branch: 9716c08 |
0f6a53e to
4a20c8c
Compare
c3a084b to
5f78e5d
Compare
|
Upstream branch: 2a2974b |
4a20c8c to
7c1a0eb
Compare
5f78e5d to
e48f9db
Compare
|
Upstream branch: 062871f |
7c1a0eb to
9d58808
Compare
199644a to
e6d9eb8
Compare
|
Upstream branch: 66affa3 |
9d58808 to
28a0331
Compare
e6d9eb8 to
7d8604f
Compare
|
Upstream branch: bade58e |
28a0331 to
45bbbe3
Compare
7d8604f to
4cc45a3
Compare
|
Upstream branch: 4edcdef |
45bbbe3 to
a1385b9
Compare
4cc45a3 to
90ffd56
Compare
IS_ENABLED() mainly for CONFIG_* symbols. ZRAM_PARTIAL_IO is a macro defined as 1 on non-4K builds, so IS_ENABLED(ZRAM_PARTIAL_IO) becomes IS_ENABLED(1) and evaluates false. Replace that check with PAGE_SIZE == 4096 and fold is_partial_io() into one helper so partial-I/O policy stays consistent. PAGE_SIZE is a build-time constant, so the PAGE_SIZE == 4096 checks fold away on the configurations where partial I/O is supported. Tested-on: Raspberry Pi 5 (BCM2712, 4 KiB and 16 KiB page kernels) Signed-off-by: Jianyue Wu <wujianyue000@gmail.com>
|
Upstream branch: dc59e4f |
a1385b9 to
d4ab06a
Compare
Pull request for series with
subject: zram: fix partial I/O gating on non-4K PAGE_SIZE
version: 2
url: https://patchwork.kernel.org/project/linux-block/list/?series=1107309