]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: constify compound_order() and page_size()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 10 Sep 2025 14:29:17 +0000 (15:29 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:26:19 +0000 (17:26 -0700)
commitd7f7c9aac366a932f7d053ffd189df3819d7c538
treeaae15ed14881f67d4b315fed84c9e3b0c4da89b9
parentc000795c05c4da38593ecdd20fc0a8bda29eb011
mm: constify compound_order() and page_size()

Patch series "Small cleanups".

These small cleanups can be applied now to reduce conflicts during the
next merge window.  They're all from various efforts to split struct page
from other memdescs.  Thanks to Vlastimil for the suggestion.

This patch (of 3):

These functions do not modify their arguments.  Telling the compiler this
may improve code generation, and allows us to pass const arguments from
other functions.

Link: https://lkml.kernel.org/r/20250910142923.2465470-1-willy@infradead.org
Link: https://lkml.kernel.org/r/20250910142923.2465470-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Zi Yan <ziy@nvidia.com>
Acked-by: David Hildenbrand <david@redhat.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h