summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
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 /scripts/generate_rust_analyzer.py
parentb4444a849f1827c04df81a6f1ef26ddb6f072a94 (diff)
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions