]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
zram: trivial fix of recompress_slot() coding styles
authorSergey Senozhatsky <senozhatsky@chromium.org>
Mon, 15 Dec 2025 05:47:13 +0000 (14:47 +0900)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 21 Jan 2026 03:24:38 +0000 (19:24 -0800)
A minor fixup of 80-cols breakage in recompress_slot() comment and
zs_malloc() call.

Link: https://lkml.kernel.org/r/ff3254847dbdc6fbd2e3fed53c572a261d60b7b6.1765775954.git.senozhatsky@chromium.org
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Brian Geffon <bgeffon@google.com>
Cc: David Stevens <stevensd@google.com>
Cc: Minchan Kim <minchan@google.com>
Cc: Richard Chang <richardycc@google.com>
Cc: Chris Mason <clm@meta.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/zram/zram_drv.c

index bd9a37fca675f6fd39bbc39b00ee6276e1a0ec2d..df30150e6ed80aae75406841ec40c1e0fcf6405e 100644 (file)
@@ -2517,14 +2517,15 @@ static int recompress_slot(struct zram *zram, u32 index, struct page *page,
         * avoid direct reclaim.  Allocation error is not fatal since
         * we still have the old object in the mem_pool.
         *
-        * XXX: technically, the node we really want here is the node that holds
-        * the original compressed data. But that would require us to modify
-        * zsmalloc API to return this information. For now, we will make do with
-        * the node of the page allocated for recompression.
+        * XXX: technically, the node we really want here is the node that
+        * holds the original compressed data. But that would require us to
+        * modify zsmalloc API to return this information. For now, we will
+        * make do with the node of the page allocated for recompression.
         */
        handle_new = zs_malloc(zram->mem_pool, comp_len_new,
                               GFP_NOIO | __GFP_NOWARN |
-                              __GFP_HIGHMEM | __GFP_MOVABLE, page_to_nid(page));
+                              __GFP_HIGHMEM | __GFP_MOVABLE,
+                              page_to_nid(page));
        if (IS_ERR_VALUE(handle_new)) {
                zcomp_stream_put(zstrm);
                return PTR_ERR((void *)handle_new);