Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1527212ybl; Sun, 19 Jan 2020 05:15:59 -0800 (PST) X-Google-Smtp-Source: APXvYqzpOsUWZqf9sy9zv87tVDwH46elkpEzdA1vI/YII2XhlYPwOAXLC3mhM+XVd3fHhRx5SLP9 X-Received: by 2002:aca:1204:: with SMTP id 4mr9940969ois.143.1579439759221; Sun, 19 Jan 2020 05:15:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579439759; cv=none; d=google.com; s=arc-20160816; b=JADBxOMcff1RCXnquoefHQrATZ0JnFQjF3MXZxaLwImZ03OR5UNXcZnf1Duiu4bvmB xd1eXGgJ8URdw2wUzNKg1VsZ23APZRzo6nb9OkHPlvXJfWa28r85ZWYK558vUdvOh0GX RmvLfWXHeu75C8i24OSAGec+7KEDkiLdcTbqjzMjrfeO5RbIK6i8NW+HER67J6WRazCJ SVwvGDM4PiLQzzZUXlrjQ96OnLLmwdgOow9j7oxhbEbcwBg4TEVJ99ybWFOd9+/y3Qhv u/qPpX6eU/XaPLXxrPZrrICVralqBiBkIAMd7dkaFkQZhnrP1yqoH+PvX4RY19csXD4f fILw== 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; bh=z0R/ChsbjIz1UlcKCIxa8sYV+C8/drq0aHQmzjbLzzo=; b=kGrpRNz3dReaeY3f8SkgCob3ccf/0erye95a7QQYqGAdK20dHwDDanvDDnnjveAb0c xGPJRhRJeqWbWaZKSSy5zt5tYuoPbe6Pm++3jHCMV+GJyO5x5u/NsH7Qb7LfgGHYT7mY UwVMmp59DK4fCax5tiuPerzhFzE4RH61CClUkBrkDqSgrF8QspHDrX93eZs7HIleLCOH DMNvH5QPBbVpa0/pBc32LZB4qluDih3dQ9z80X7Q1h44A5EzgdILLwTT5iGdVPI5rH2f eYcguhcRa0P0a5ugfL3P04gwVbBDa34sUcglhOoOmpI3ISmZEiqVpgw7wIx3kU2c6eEZ MHUw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c11si17282377oib.246.2020.01.19.05.15.47; Sun, 19 Jan 2020 05:15:59 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728935AbgASNOh (ORCPT + 99 others); Sun, 19 Jan 2020 08:14:37 -0500 Received: from mga06.intel.com ([134.134.136.31]:54272 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726874AbgASNOf (ORCPT ); Sun, 19 Jan 2020 08:14:35 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Jan 2020 05:14:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,338,1574150400"; d="scan'208";a="220464515" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by fmsmga007.fm.intel.com with ESMTP; 19 Jan 2020 05:14:34 -0800 From: Wei Yang To: akpm@linux-foundation.org Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH 3/4] mm/page_alloc.c: rename free_pages_check() to check_free_page() Date: Sun, 19 Jan 2020 21:14:07 +0800 Message-Id: <20200119131408.23247-4-richardw.yang@linux.intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200119131408.23247-1-richardw.yang@linux.intel.com> References: <20200119131408.23247-1-richardw.yang@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org free_pages_check() is the counterpart of check_new_page(), while their naming convention is a little different. Use verb at first and singular form. 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 e2324df1b261..87658a16af07 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1055,7 +1055,7 @@ static void check_free_page_bad(struct page *page) bad_page(page, bad_reason, bad_flags); } -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; @@ -1147,7 +1147,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; } @@ -1159,7 +1159,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; @@ -1206,7 +1206,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; } @@ -1227,7 +1227,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.17.1