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.

mm: zpdesc: minor naming and comment corrections

zpdesc is the page descriptor used by the zsmalloc backend allocator,
which in turn is used by zswap and zram. The zpool layer is gone.

Link: https://lkml.kernel.org/r/20250829162212.208258-4-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Cc: Chengming Zhou <zhouchengming@bytedance.com>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: SeongJae Park <sj@kernel.org>
Cc: Vitaly Wool <vitaly.wool@konsulko.se>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Johannes Weiner and committed by
Andrew Morton
2f5bd89b 2ccd9fec

+7 -7
+7 -7
mm/zpdesc.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 - /* zpdesc.h: zswap.zpool memory descriptor 2 + /* zpdesc.h: zsmalloc pool memory descriptor 3 3 * 4 4 * Written by Alex Shi <alexs@kernel.org> 5 5 * Hyeonggon Yoo <42.hyeyoo@gmail.com> ··· 11 11 #include <linux/pagemap.h> 12 12 13 13 /* 14 - * struct zpdesc - Memory descriptor for zpool memory. 14 + * struct zpdesc - Memory descriptor for zsmalloc pool memory. 15 15 * @flags: Page flags, mostly unused by zsmalloc. 16 16 * @lru: Indirectly used by page migration. 17 17 * @movable_ops: Used by page migration. 18 - * @next: Next zpdesc in a zspage in zsmalloc zpool. 19 - * @handle: For huge zspage in zsmalloc zpool. 18 + * @next: Next zpdesc in a zspage in zsmalloc pool. 19 + * @handle: For huge zspage in zsmalloc pool. 20 20 * @zspage: Points to the zspage this zpdesc is a part of. 21 - * @first_obj_offset: First object offset in zsmalloc zpool. 21 + * @first_obj_offset: First object offset in zsmalloc pool. 22 22 * @_refcount: The number of references to this zpdesc. 23 23 * 24 24 * This struct overlays struct page for now. Do not modify without a good ··· 79 79 * zpdesc_folio - The folio allocated for a zpdesc 80 80 * @zp: The zpdesc. 81 81 * 82 - * Zpdescs are descriptors for zpool memory. The zpool memory itself is 83 - * allocated as folios that contain the zpool objects, and zpdesc uses specific 82 + * Zpdescs are descriptors for zsmalloc memory. The memory itself is allocated 83 + * as folios that contain the zsmalloc objects, and zpdesc uses specific 84 84 * fields in the first struct page of the folio - those fields are now accessed 85 85 * by struct zpdesc. 86 86 *