]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/page_alloc: add lockdep assertion for pageblock type change
authorBrendan Jackman <jackmanb@google.com>
Thu, 27 Feb 2025 16:15:47 +0000 (16:15 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 28 Feb 2025 01:00:40 +0000 (17:00 -0800)
commitb4cfcc26f507ecef2861ccfb883698933083fce6
tree2c5c28076182f70e71eb0768634560b802e7c072
parent9ddc3bc5d49749006f5843d06a904344c6b758bf
mm/page_alloc: add lockdep assertion for pageblock type change

Since the migratetype hygiene patches [0], the locking here is
a bit more formalised, so write it down with an assert.

[0] https://lore.kernel.org/lkml/20240320180429.678181-3-hannes@cmpxchg.org/T/

Link: https://lkml.kernel.org/r/20250227-pageblock-lockdep-v1-1-3701efb331bb@google.com
Signed-off-by: Brendan Jackman <jackmanb@google.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memory_hotplug.h
mm/memory_hotplug.c
mm/page_alloc.c