summaryrefslogtreecommitdiff
path: root/mm/damon
diff options
context:
space:
mode:
authorKefeng Wang <wangkefeng.wang@huawei.com>2022-12-30 10:08:48 +0300
committerAndrew Morton <akpm@linux-foundation.org>2023-01-19 04:12:53 +0300
commit7824debb3d029e6a6252137fd10f3553cc8de22a (patch)
tree9ec0e69783ceb0b0b188e5b6e0904cc1e4536bd3 /mm/damon
parentdc1b78665b37ec50fc142a7f1a8fa4f626cd6a58 (diff)
downloadlinux-7824debb3d029e6a6252137fd10f3553cc8de22a.tar.xz
mm/damon: remove unneeded damon_get_page()
After all damon_get_page() callers are converted to damon_get_folio(), remove unneeded wrapper damon_get_page(). Link: https://lkml.kernel.org/r/20221230070849.63358-8-wangkefeng.wang@huawei.com Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com> Reviewed-by: SeongJae Park <sj@kernel.org> Cc: David Hildenbrand <david@redhat.com> Cc: Matthew Wilcox (Oracle) <willy@infradead.org> Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/damon')
-rw-r--r--mm/damon/ops-common.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/damon/ops-common.h b/mm/damon/ops-common.h
index 65f290f0a9d6..14f4bc69f29b 100644
--- a/mm/damon/ops-common.h
+++ b/mm/damon/ops-common.h
@@ -8,13 +8,6 @@
#include <linux/damon.h>
struct folio *damon_get_folio(unsigned long pfn);
-static inline struct page *damon_get_page(unsigned long pfn)
-{
- struct folio *folio = damon_get_folio(pfn);
-
- /* when folio is NULL, return &(0->page) mean return NULL */
- return &folio->page;
-}
void damon_ptep_mkold(pte_t *pte, struct mm_struct *mm, unsigned long addr);
void damon_pmdp_mkold(pmd_t *pmd, struct mm_struct *mm, unsigned long addr);