From patchwork Wed Mar 24 16:07:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhong jiang X-Patchwork-Id: 12161641 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6884BC433C1 for ; Wed, 24 Mar 2021 16:07:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id F2518619BA for ; Wed, 24 Mar 2021 16:07:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F2518619BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 387F36B02BA; Wed, 24 Mar 2021 12:07:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3376A6B02C7; Wed, 24 Mar 2021 12:07:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1D8496B02D1; Wed, 24 Mar 2021 12:07:17 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0180.hostedemail.com [216.40.44.180]) by kanga.kvack.org (Postfix) with ESMTP id 0593C6B02BA for ; Wed, 24 Mar 2021 12:07:16 -0400 (EDT) Received: from smtpin23.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id BA5DFBBF8 for ; Wed, 24 Mar 2021 16:07:16 +0000 (UTC) X-FDA: 77955247272.23.C8F843D Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by imf21.hostedemail.com (Postfix) with ESMTP id 85E07E016163 for ; Wed, 24 Mar 2021 16:07:12 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=zhongjiang-ali@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UTBtUyv_1616602022; Received: from localhost(mailfrom:zhongjiang-ali@linux.alibaba.com fp:SMTPD_---0UTBtUyv_1616602022) by smtp.aliyun-inc.com(127.0.0.1); Thu, 25 Mar 2021 00:07:06 +0800 From: zhongjiang-ali 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 Message-Id: <1616602022-43545-1-git-send-email-zhongjiang-ali@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-Stat-Signature: tradaa8sfcqmckn7331aqa7wkhmoyhur X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 85E07E016163 Received-SPF: none (linux.alibaba.com>: No applicable sender policy available) receiver=imf21; identity=mailfrom; envelope-from=""; helo=out30-132.freemail.mail.aliyun.com; client-ip=115.124.30.132 X-HE-DKIM-Result: none/none X-HE-Tag: 1616602032-382826 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 --- 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++; }