Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

pagevec.h: add `const` to pointer parameters of getter functions

For improved const-correctness.

Link: https://lkml.kernel.org/r/20250828130311.772993-1-max.kellermann@ionos.com
Signed-off-by: Max Kellermann <max.kellermann@ionos.com>
Reviewed-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Acked-by: SeongJae Park <sj@kernel.org>
Reviewed-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Max Kellermann and committed by
Andrew Morton
1e332f30 d8f867fa

+2 -2
+2 -2
include/linux/pagevec.h
··· 51 51 fbatch->i = 0; 52 52 } 53 53 54 - static inline unsigned int folio_batch_count(struct folio_batch *fbatch) 54 + static inline unsigned int folio_batch_count(const struct folio_batch *fbatch) 55 55 { 56 56 return fbatch->nr; 57 57 } 58 58 59 - static inline unsigned int folio_batch_space(struct folio_batch *fbatch) 59 + static inline unsigned int folio_batch_space(const struct folio_batch *fbatch) 60 60 { 61 61 return PAGEVEC_SIZE - fbatch->nr; 62 62 }