Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1906044ybb; Sat, 11 Apr 2020 15:05:36 -0700 (PDT) X-Google-Smtp-Source: APiQypIjqUhGSLJlGz/7WdPz7+f1Ywfc/ZgdbyJye1A5toAFuYHiqgLqLgPUk00N42F5RSbd0ZK+ X-Received: by 2002:ad4:5a11:: with SMTP id ei17mr11157975qvb.48.1586642736444; Sat, 11 Apr 2020 15:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586642736; cv=none; d=google.com; s=arc-20160816; b=DGLRvSbsUNfeZ+dpPaDzYbMarFCHQsOtCNnmTOw0a1IxqpUUYLwL8nZjJfpHd6lnTu 6cLXxAemqrQQtgFtk2n5f59W7ZdnMkP53J9lJygKwu9b26GigP9J1earHZlntOGE7K5S HKsf3Qh0oaqTPSSVr1x5ow0ETa/NnTc75oNTPXb9J4fyeasdeEqlk+hpW5dfa7rhWD0d iD8MmZzrKDbsnn7qPBnMPmBb5rDZx7oXKaor8nK7seoX8VccqsX6PS2JPyayawFaDgRz Tzvzv1WuNIojIFdVisoPlT7HpKzffoggP4sxHnWJlNc3F4nJpx10yDL6qNZacLc5BkrV tYXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=zI3tJmo+o+GXkNWorcFoXLz8vYcrcpDEFf4n0oB8dNo=; b=U7QcPRlVtr0jF7X666ZWVfodTjgYsnb4RcCrWWnwGLIuoE+Do6fGixe0ZZlmo9/afW csRah8vt0hEzxY74m6dtQfejAYtHyxjrW30bU9NCfQmtil3PQpzZQRoDYRAG6HDH8O1j CNw3qRfbgl9yisQXQ1NEmglTSRivWQFVsZGZIbhsPPjOWOzk9bWuX5vnfMJ9hoaQhBuW pKu7p39hcxxqKxVKIfOOBiy4J2BX7W14YnqB1CJQ6U6FVZX6+OZ2abVFXteReLU9PENj 9JNTGYx9rMA+0l5Dnh3TXa0lN7Y28XHQnNv1LjdZu9ajKebLFlOkwiRGqfcLEOPEF9K4 WrDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rdudLdLt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o5si3674729qkh.166.2020.04.11.15.05.21; Sat, 11 Apr 2020 15:05:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rdudLdLt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726829AbgDKWE3 (ORCPT + 99 others); Sat, 11 Apr 2020 18:04:29 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43415 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726108AbgDKWE2 (ORCPT ); Sat, 11 Apr 2020 18:04:28 -0400 Received: by mail-wr1-f66.google.com with SMTP id i10so6161963wrv.10 for ; Sat, 11 Apr 2020 15:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zI3tJmo+o+GXkNWorcFoXLz8vYcrcpDEFf4n0oB8dNo=; b=rdudLdLt+Nawf50OHLaGEZbuSLmsPXhfz7lk7AKWyU+MhDQEl+Y34nrbTY91Xft7O7 huTPmx4+3g4uAr1AZdQCTU6SAc3HlxQYB6/wuyehgG7lg59f2me4HHh/kMcNo8HZmWFh 7+wtHc9/sjpH9wPhXW80/8CVbvj+spUhdNnjLDDUtpAJ1t3IDWaRiWXYbaI165tE2aYt 9xT4we8RjKhbxzq5yNXiVAgGctE1AjiHpa+Dgo46he3PWO/te3c9+OSjoCLjSeObcgTe +LVKowsccr2I6H95b+3EnG5w7+7s1Ot5MPMnNqeEWAfDGx/7uRucaksMVGK+qkOcrEPw UDSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zI3tJmo+o+GXkNWorcFoXLz8vYcrcpDEFf4n0oB8dNo=; b=hp5eWlHvwEEJ/rzheEaZmGD9SAy9Se5s39CaJyIgAYrquxfpEKeZiw+zmzL25MD2Dz juMmwZNFprbrf8XjrvP3MJtAqOmp8zlhnK/E0eOd9pD32BoRd2ieEzagr5V2fRrzucPV rt/RAakM2LSwO4VTLGUIPYD/dm2t9gCSXgKvMHg/D4PGZDDdJ3utvYLhNhU2hQXpWJ2U 7mYkon7Gf1ViPenRSuBJjhjK6mfDTSivz+EtuSOdulXF1ela/nBo7IIW/ELgaWiqceJz rP12+rrHlAv91uqxA12+SGb3v3pZv4ERhEELeaD18z3pw1S00R9I95i+0+RxyXWmzBSE zYtA== X-Gm-Message-State: AGi0PuYKuD4iq/mBMcP36Z3lpk66RcDHdmU8VzLUP+YUA//B4GJPflGw YpJ9JdNxXHjkro0oIGw3eIScget6vUQ= X-Received: by 2002:a5d:66c4:: with SMTP id k4mr12151090wrw.53.1586642667016; Sat, 11 Apr 2020 15:04:27 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id z18sm2342424wrw.41.2020.04.11.15.04.26 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Apr 2020 15:04:26 -0700 (PDT) From: Wei Yang To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, rientjes@google.com, anshuman.khandual@arm.com, david@redhat.com, Wei Yang Subject: [Patch v3 4/5] mm/page_alloc.c: rename free_pages_check() to check_free_page() Date: Sat, 11 Apr 2020 22:03:56 +0000 Message-Id: <20200411220357.9636-5-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20200411220357.9636-1-richard.weiyang@gmail.com> References: <20200411220357.9636-1-richard.weiyang@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Function free_pages_check() is the counterpart of check_new_page(). Rename it to use the same name convention. Signed-off-by: Wei Yang --- mm/page_alloc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 85d7aec5fb45..dfcf2682ed40 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1032,7 +1032,7 @@ static void check_free_page_bad(struct page *page) bad_page(page, bad_reason); } -static inline int free_pages_check(struct page *page) +static inline int check_free_page(struct page *page) { if (likely(page_expected_state(page, PAGE_FLAGS_CHECK_AT_FREE))) return 0; @@ -1124,7 +1124,7 @@ static __always_inline bool free_pages_prepare(struct page *page, for (i = 1; i < (1 << order); i++) { if (compound) bad += free_tail_pages_check(page, page + i); - if (unlikely(free_pages_check(page + i))) { + if (unlikely(check_free_page(page + i))) { bad++; continue; } @@ -1136,7 +1136,7 @@ static __always_inline bool free_pages_prepare(struct page *page, if (memcg_kmem_enabled() && PageKmemcg(page)) __memcg_kmem_uncharge(page, order); if (check_free) - bad += free_pages_check(page); + bad += check_free_page(page); if (bad) return false; @@ -1183,7 +1183,7 @@ static bool free_pcp_prepare(struct page *page) static bool bulkfree_pcp_prepare(struct page *page) { if (debug_pagealloc_enabled_static()) - return free_pages_check(page); + return check_free_page(page); else return false; } @@ -1204,7 +1204,7 @@ static bool free_pcp_prepare(struct page *page) static bool bulkfree_pcp_prepare(struct page *page) { - return free_pages_check(page); + return check_free_page(page); } #endif /* CONFIG_DEBUG_VM */ -- 2.23.0