Message ID | 20200411220357.9636-4-richard.weiyang@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=odmD=53=kvack.org=owner-linux-mm@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 98BF314DD for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 11 Apr 2020 22:04:33 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6550A2051A for <patchwork-linux-mm@patchwork.kernel.org>; Sat, 11 Apr 2020 22:04:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="chgPPt02" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6550A2051A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id E3CF38E00B6; Sat, 11 Apr 2020 18:04:27 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id DF0E48E0007; Sat, 11 Apr 2020 18:04:27 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B7C718E00B6; Sat, 11 Apr 2020 18:04:27 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0081.hostedemail.com [216.40.44.81]) by kanga.kvack.org (Postfix) with ESMTP id 99D398E0007 for <linux-mm@kvack.org>; Sat, 11 Apr 2020 18:04:27 -0400 (EDT) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 52A24499615 for <linux-mm@kvack.org>; Sat, 11 Apr 2020 22:04:27 +0000 (UTC) X-FDA: 76696953774.04.crowd13_61124e83f9e10 X-Spam-Summary: 2,0,0,5fab1f170cbad4cf,d41d8cd98f00b204,richard.weiyang@gmail.com,,RULES_HIT:41:355:379:541:800:960:965:966:973:988:989:1260:1345:1359:1437:1534:1540:1711:1714:1730:1747:1777:1792:2196:2199:2393:2559:2562:3138:3139:3140:3141:3142:3351:3865:3866:3867:3871:3872:4321:4385:4390:4395:5007:6261:6653:7514:9413:10004:11026:11658:11914:12114:12297:12438:12517:12519:12555:12895:13069:13255:13311:13357:14096:14181:14384:14687:14721:21080:21324:21444:21627:21666:21990:30029:30054,0,RBL:209.85.128.65:@gmail.com:.lbl8.mailshell.net-62.50.0.100 66.100.201.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: crowd13_61124e83f9e10 X-Filterd-Recvd-Size: 3749 Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by imf14.hostedemail.com (Postfix) with ESMTP for <linux-mm@kvack.org>; Sat, 11 Apr 2020 22:04:26 +0000 (UTC) Received: by mail-wm1-f65.google.com with SMTP id v8so7323229wma.0 for <linux-mm@kvack.org>; Sat, 11 Apr 2020 15:04:26 -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=HloapMrTBbqZ+nTqkRH5KhOauRgcgw6WdiZ5Tk8uSNs=; b=chgPPt02lSLt2BSMGRU0pTejdXcwcYFgZCIwRwJqXMuTbCkswQSP3glvvzx18CJZBI Uasjm6ZXZ8ikkX56wWvNiYc+758d4+uWZ/OqH0T7v5eazJC/F3VFvrr2f7BCEdTQQ9/z XCbfd3dhzlYdE7tb9fyWpM4g2LxsmqF656/FvqLssOF5wO5/F08jckFwQoN7MeBNLL1O ea9PClEMoqSqWO9NFsxj/IEYmH4mXoTvywNOLcgI1WEy2ViWB2l1SZ0LtlS+sr/tpgGM Z5FsGuLQh8l5+0EFbXIX8CTMVyRgGSHGY7yV+qUHC5NnVJA2c4lVzSE+kTsUkRhzqrXQ KXrQ== 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=HloapMrTBbqZ+nTqkRH5KhOauRgcgw6WdiZ5Tk8uSNs=; b=Z+xn5vwgDE3bV5+1f8QI9QS5nDScLX30ApURhSIHYDWrWqdSn2jPA0Iy6bFCv3f87T grR4uwdPT9YJEjQ5kHKqmOQ+kLs2VAzD8APu8NfDLri8iBkRQQ36w7FDJ3/cCAkspAjq Hmq2cneJg1bQ7unADtgs28kPhlIXHXG/k0nC4rlVd7it6txzD5WhRYUJfBMrrE8tvZG1 OtK/D3n+McDZD8EJkE7r63ynx9gUvmjwO3vzDCErMJsOoyS6viS/hkYqbxuAhjGbsLku 53+ablhAHwP9ev5F04wQz2w1C9oK/vub6iuokc7JUtLKMF8O4JFAw4RAp3CUfId3L61v bxrw== X-Gm-Message-State: AGi0PuYRAWEDXj9n5n2BgCEdFSEUeIOkWLf6Ck07AMMPsSnUHpa1dZp2 3tCDnfsfxl73rfR/43gMz9k= X-Google-Smtp-Source: APiQypKEKVP/CHvgZum2u6S6RrESZKdY7U9o9KPcFWC9g7fhISobWofHL0gNM4tnu1NTuibz8eh/FA== X-Received: by 2002:a1c:1f8e:: with SMTP id f136mr11168293wmf.166.1586642666074; Sat, 11 Apr 2020 15:04:26 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id e11sm9307275wrs.82.2020.04.11.15.04.25 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Apr 2020 15:04:25 -0700 (PDT) From: Wei Yang <richard.weiyang@gmail.com> 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 <richard.weiyang@gmail.com> Subject: [Patch v3 3/5] mm/page_alloc.c: rename free_pages_check_bad() to check_free_page_bad() Date: Sat, 11 Apr 2020 22:03:55 +0000 Message-Id: <20200411220357.9636-4-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> 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: <linux-mm.kvack.org> |
Series |
mm/page_alloc.c: cleanup on check page
|
expand
|
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 0648127af872..85d7aec5fb45 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1013,7 +1013,7 @@ static inline bool page_expected_state(struct page *page, return true; } -static void free_pages_check_bad(struct page *page) +static void check_free_page_bad(struct page *page) { const char *bad_reason = NULL; @@ -1038,7 +1038,7 @@ static inline int free_pages_check(struct page *page) return 0; /* Something has gone sideways, find it */ - free_pages_check_bad(page); + check_free_page_bad(page); return 1; }
Function free_pages_check_bad() is the counterpart of check_new_page_bad(). Rename it to use the same name convention. Signed-off-by: Wei Yang <richard.weiyang@gmail.com> --- mm/page_alloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)