aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorSergey Senozhatsky <senozhatsky@chromium.org>2024-12-18 15:34:20 +0900
committerAndrew Morton <akpm@linux-foundation.org>2025-01-25 20:22:20 -0800
commita5cd78accfd376541e9b731d58656d58fdf1a6fe (patch)
tree186dc52c28b433d1837ffec19d2ba6a0b495f72b /mm/hugetlb.c
parentzram: remove entry element member (diff)
downloadwireguard-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