All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Two small patches to clean up mm/mm_slot.h
@ 2026-07-13  6:35 xu.xin16
  2026-07-13  6:37 ` [PATCH v2 1/2] mm/mm_slot.h: add a helper function mm_slot_remove xu.xin16
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: xu.xin16 @ 2026-07-13  6:35 UTC (permalink / raw)
  To: akpm, david, ljs
  Cc: xu.xin16, ziy, baolin.wang, baohua, lance.yang, usama.arif,
	chengming.zhou, qi.zheng, linux-mm, linux-kernel, npache,
	ryan.roberts, dev.jain, wang.yaxin

From: xu xin <xu.xin16@zte.com.cn>

mm_slot.h is mainly used by THP and KSM.

Patch 1 introduces mm_slot_remove() to abstract the common
hash_del() + list_del() sequence used in both khugepaged and KSM.

Patch 2 cleans up the macro parameter names in mm_slot_lookup() and
mm_slot_insert() by removing the leading underscores, and adds a
comment explaining why they cannot be converted to static inline
functions (they rely on sizeof() on the actual array argument).

xu xin (2):
  mm/mm_slot.h: add a helper function mm_slot_remove
  mm/mm_slot.h: clean up macro parameter names in mm_slot_lookup() and
    mm_slot_insert()

 mm/khugepaged.c |  6 ++----
 mm/ksm.c        |  9 +++------
 mm/mm_slot.h    | 22 ++++++++++++++++------
 3 files changed, 21 insertions(+), 16 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2026-07-14  1:06 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13  6:35 [PATCH v2 0/2] Two small patches to clean up mm/mm_slot.h xu.xin16
2026-07-13  6:37 ` [PATCH v2 1/2] mm/mm_slot.h: add a helper function mm_slot_remove xu.xin16
2026-07-13 11:48   ` Nico Pache
2026-07-13 13:51   ` Zi Yan
2026-07-13 15:19   ` Barry Song
2026-07-13 15:23   ` David Hildenbrand (Arm)
2026-07-13 16:03   ` Lorenzo Stoakes (ARM)
2026-07-14  0:16   ` SJ Park
2026-07-13  6:38 ` mm/mm_slot.h: clean up macro parameter names in mm_slot_lookup() and mm_slot_insert() xu.xin16
2026-07-13  6:41 ` [PATCH v2 2/2] " xu.xin16
2026-07-13 15:21   ` Barry Song
2026-07-14  0:32     ` xu.xin16
2026-07-13 15:24   ` David Hildenbrand (Arm)
2026-07-14  0:30     ` xu.xin16
2026-07-13 16:13   ` Lorenzo Stoakes (ARM)
2026-07-14  0:41     ` xu.xin16
2026-07-14  1:06       ` Barry Song

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.