From: Alexander Lobakin Date: Tue, 2 Feb 2021 13:30:54 +0000 (+0000) Subject: mm: constify page_is_pfmemalloc() argument X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1d7bab6a94458e959f3f55788fd50ddc7d97403b;p=linux.git mm: constify page_is_pfmemalloc() argument The function only tests for page->index, so its argument should be const. Signed-off-by: Alexander Lobakin Reviewed-by: Jesse Brandeburg Acked-by: David Rientjes Signed-off-by: Jakub Kicinski --- diff --git a/include/linux/mm.h b/include/linux/mm.h index ecdf8a8cd6aeb..078633d43af95 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -1584,7 +1584,7 @@ struct address_space *page_mapping_file(struct page *page); * ALLOC_NO_WATERMARKS and the low watermark was not * met implying that the system is under some pressure. */ -static inline bool page_is_pfmemalloc(struct page *page) +static inline bool page_is_pfmemalloc(const struct page *page) { /* * Page index cannot be this large so this must be