Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

zram: trivial fix of recompress_slot() coding styles

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>

authored by

Sergey Senozhatsky and committed by
Andrew Morton
4932844e bde60fe7

+6 -5
+6 -5
drivers/block/zram/zram_drv.c
··· 2517 2517 * avoid direct reclaim. Allocation error is not fatal since 2518 2518 * we still have the old object in the mem_pool. 2519 2519 * 2520 - * XXX: technically, the node we really want here is the node that holds 2521 - * the original compressed data. But that would require us to modify 2522 - * zsmalloc API to return this information. For now, we will make do with 2523 - * the node of the page allocated for recompression. 2520 + * XXX: technically, the node we really want here is the node that 2521 + * holds the original compressed data. But that would require us to 2522 + * modify zsmalloc API to return this information. For now, we will 2523 + * make do with the node of the page allocated for recompression. 2524 2524 */ 2525 2525 handle_new = zs_malloc(zram->mem_pool, comp_len_new, 2526 2526 GFP_NOIO | __GFP_NOWARN | 2527 - __GFP_HIGHMEM | __GFP_MOVABLE, page_to_nid(page)); 2527 + __GFP_HIGHMEM | __GFP_MOVABLE, 2528 + page_to_nid(page)); 2528 2529 if (IS_ERR_VALUE(handle_new)) { 2529 2530 zcomp_stream_put(zstrm); 2530 2531 return PTR_ERR((void *)handle_new);