diff options
author | 2024-12-18 15:34:20 +0900 | |
---|---|---|
committer | 2025-01-25 20:22:20 -0800 | |
commit | a5cd78accfd376541e9b731d58656d58fdf1a6fe (patch) | |
tree | 186dc52c28b433d1837ffec19d2ba6a0b495f72b /mm/hugetlb.c | |
parent | zram: remove entry element member (diff) | |
download | wireguard-linux-a5cd78accfd376541e9b731d58656d58fdf1a6fe.tar.xz wireguard-linux-a5cd78accfd376541e9b731d58656d58fdf1a6fe.zip |
zram: factor out ZRAM_SAME write
Handling of ZRAM_SAME now uses a goto to the final stages of
zram_write_page() plus it introduces a branch and flags variable, which is
not making the code any simpler. In reality, we can handle ZRAM_SAME
immediately when we detect such pages and remove a goto and a branch.
Factor out ZRAM_SAME handling into a separate routine to simplify
zram_write_page().
Link: https://lkml.kernel.org/r/20241218063513.297475-4-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 'mm/hugetlb.c')
0 files changed, 0 insertions, 0 deletions