]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm: zpdesc: minor naming and comment corrections
authorJohannes Weiner <hannes@cmpxchg.org>
Fri, 29 Aug 2025 16:15:28 +0000 (17:15 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:25:27 +0000 (17:25 -0700)
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zpdesc.h

index 25bf5ea0beb83fa0aef8972a0a8c533fe5759bb7..b8258dc78548d13e83f5a6debce8d26c5cd8dd53 100644 (file)
@@ -1,5 +1,5 @@
 /* SPDX-License-Identifier: GPL-2.0 */
-/* zpdesc.h: zswap.zpool memory descriptor
+/* zpdesc.h: zsmalloc pool memory descriptor
  *
  * Written by Alex Shi <alexs@kernel.org>
  *           Hyeonggon Yoo <42.hyeyoo@gmail.com>
 #include <linux/pagemap.h>
 
 /*
- * struct zpdesc -     Memory descriptor for zpool memory.
+ * struct zpdesc -     Memory descriptor for zsmalloc pool memory.
  * @flags:             Page flags, mostly unused by zsmalloc.
  * @lru:               Indirectly used by page migration.
  * @movable_ops:       Used by page migration.
- * @next:              Next zpdesc in a zspage in zsmalloc zpool.
- * @handle:            For huge zspage in zsmalloc zpool.
+ * @next:              Next zpdesc in a zspage in zsmalloc pool.
+ * @handle:            For huge zspage in zsmalloc pool.
  * @zspage:            Points to the zspage this zpdesc is a part of.
- * @first_obj_offset:  First object offset in zsmalloc zpool.
+ * @first_obj_offset:  First object offset in zsmalloc pool.
  * @_refcount:         The number of references to this zpdesc.
  *
  * This struct overlays struct page for now. Do not modify without a good
@@ -79,8 +79,8 @@ static_assert(sizeof(struct zpdesc) <= sizeof(struct page));
  * zpdesc_folio - The folio allocated for a zpdesc
  * @zp: The zpdesc.
  *
- * Zpdescs are descriptors for zpool memory. The zpool memory itself is
- * allocated as folios that contain the zpool objects, and zpdesc uses specific
+ * Zpdescs are descriptors for zsmalloc memory. The memory itself is allocated
+ * as folios that contain the zsmalloc objects, and zpdesc uses specific
  * fields in the first struct page of the folio - those fields are now accessed
  * by struct zpdesc.
  *