diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2024-10-05 20:01:15 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-11-07 22:38:07 +0000 |
| commit | 68158bfa3dbd4af8461ef75a91ffc03be942c8fe (patch) | |
| tree | c9d893f1a845509151594a08f051c3cdc7f303ac /mm/internal.h | |
| parent | mm: renovate page_address_in_vma() (diff) | |
| download | kernel-68158bfa3dbd4af8461ef75a91ffc03be942c8fe.tar.gz kernel-68158bfa3dbd4af8461ef75a91ffc03be942c8fe.zip | |
mm: mass constification of folio/page pointers
Now that page_pgoff() takes const pointers, we can constify the pointers
to a lot of functions.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/internal.h')
| -rw-r--r-- | mm/internal.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mm/internal.h b/mm/internal.h index 8674f677304a..fd6373cb1c66 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -1117,10 +1117,11 @@ void ClearPageHWPoisonTakenOff(struct page *page); bool take_page_off_buddy(struct page *page); bool put_page_back_buddy(struct page *page); struct task_struct *task_early_kill(struct task_struct *tsk, int force_early); -void add_to_kill_ksm(struct task_struct *tsk, struct page *p, +void add_to_kill_ksm(struct task_struct *tsk, const struct page *p, struct vm_area_struct *vma, struct list_head *to_kill, unsigned long ksm_addr); -unsigned long page_mapped_in_vma(struct page *page, struct vm_area_struct *vma); +unsigned long page_mapped_in_vma(const struct page *page, + struct vm_area_struct *vma); #else static inline void unmap_poisoned_folio(struct folio *folio, enum ttu_flags ttu) |
