]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: remove redundant test in validate_page_before_insert()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 10 Sep 2025 14:29:18 +0000 (15:29 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:26:19 +0000 (17:26 -0700)
commit89fbea4f424872534d8f2641c5cd9aa69eb996c9
treec4fe09e0b4f555b2d75c03ee1709b4a047361250
parentd7f7c9aac366a932f7d053ffd189df3819d7c538
mm: remove redundant test in validate_page_before_insert()

The page_has_type() call would have included slab since commit
46df8e73a4a3 and now we don't even get that far because slab pages have a
zero refcount since commit 9aec2fb0fd5e.

Link: https://lkml.kernel.org/r/20250910142923.2465470-3-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c