linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: zhongjiang-ali <zhongjiang-ali@linux.alibaba.com>
To: akpm@linux-foundation.org, vbabka@suse.cz, mhocko@kernel.org,
	hannes@cmpxchg.org
Cc: linux-mm@kvack.org
Subject: [PATCH] mm, page_owner: remove unused parameter in __set_page_owner_handle
Date: Thu, 25 Mar 2021 00:07:02 +0800	[thread overview]
Message-ID: <1616602022-43545-1-git-send-email-zhongjiang-ali@linux.alibaba.com> (raw)

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.

Signed-off-by: zhongjiang-ali <zhongjiang-ali@linux.alibaba.com>
---
 mm/page_owner.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mm/page_owner.c b/mm/page_owner.c
index d15c7c4..3cb563b 100644
--- a/mm/page_owner.c
+++ b/mm/page_owner.c
@@ -162,9 +162,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;
@@ -194,7 +194,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)
@@ -612,7 +612,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++;
 		}
-- 
1.8.3.1



                 reply	other threads:[~2021-03-24 16:07 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1616602022-43545-1-git-send-email-zhongjiang-ali@linux.alibaba.com \
    --to=zhongjiang-ali@linux.alibaba.com \
    --cc=akpm@linux-foundation.org \
    --cc=hannes@cmpxchg.org \
    --cc=linux-mm@kvack.org \
    --cc=mhocko@kernel.org \
    --cc=vbabka@suse.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).