mm: make is_free_buddy_page() take a const argument
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 26 Mar 2024 17:10:27 +0000 (17:10 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Apr 2024 03:56:14 +0000 (20:56 -0700)
commit2ace5a670e2a0f3a6029bc6cf91dc14202074e7a
tree50c7259f1a8317e101a3e5194cff98ccfc7462fd
parente3089fd0b0199a368db4039122b241139cc665f3
mm: make is_free_buddy_page() take a const argument

This function does not modify its argument; let the callers know that so
they can make better optimisation decisions.

Link: https://lkml.kernel.org/r/20240326171045.410737-6-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/page-flags.h
mm/page_alloc.c