summaryrefslogtreecommitdiffstats
path: root/mm/page_owner.c
diff options
context:
space:
mode:
authorzhongjiang-ali <zhongjiang-ali@linux.alibaba.com>2021-04-30 07:55:00 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2021-04-30 20:20:36 +0200
commit64ea78d2fdee1f68983ae3bec23f5d2bce71dc5a (patch)
treeb25b43ca2b399b9b2c1ad993d84e6517d7b38b9b /mm/page_owner.c
parentmm/page_owner: record the timestamp of all pages during free (diff)
downloadlinux-64ea78d2fdee1f68983ae3bec23f5d2bce71dc5a.tar.xz
linux-64ea78d2fdee1f68983ae3bec23f5d2bce71dc5a.zip
mm, page_owner: remove unused parameter in __set_page_owner_handle
Since commit 5556cfe8d994 ("mm, page_owner: fix off-by-one error in __set_page_owner_handle()") introduced, the parameter 'page' will not used, hence it need to be removed. Link: https://lkml.kernel.org/r/1616602022-43545-1-git-send-email-zhongjiang-ali@linux.alibaba.com Signed-off-by: zhongjiang-ali <zhongjiang-ali@linux.alibaba.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_owner.c')
-rw-r--r--mm/page_owner.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/mm/page_owner.c b/mm/page_owner.c
index 9ceae81ba7b8..b29a049b734a 100644
--- a/mm/page_owner.c
+++ b/mm/page_owner.c
@@ -165,9 +165,9 @@ void __reset_page_owner(struct page *page, unsigned int order)
}
}
-static inline void __set_page_owner_handle(struct page *page,
- struct page_ext *page_ext, depot_stack_handle_t handle,
- unsigned int order, gfp_t gfp_mask)
+static inline void __set_page_owner_handle(struct page_ext *page_ext,
+ depot_stack_handle_t handle,
+ unsigned int order, gfp_t gfp_mask)
{
struct page_owner *page_owner;
int i;
@@ -197,7 +197,7 @@ noinline void __set_page_owner(struct page *page, unsigned int order,
return;
handle = save_stack(gfp_mask);
- __set_page_owner_handle(page, page_ext, handle, order, gfp_mask);
+ __set_page_owner_handle(page_ext, handle, order, gfp_mask);
}
void __set_page_owner_migrate_reason(struct page *page, int reason)
@@ -616,7 +616,7 @@ static void init_pages_in_zone(pg_data_t *pgdat, struct zone *zone)
continue;
/* Found early allocated page */
- __set_page_owner_handle(page, page_ext, early_handle,
+ __set_page_owner_handle(page_ext, early_handle,
0, 0);
count++;
}