From patchwork Wed Jul 25 23:34:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiang Biao X-Patchwork-Id: 10544929 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 93ECAA517 for ; Wed, 25 Jul 2018 23:35:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 829542A8CF for ; Wed, 25 Jul 2018 23:35:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 769292A8DF; Wed, 25 Jul 2018 23:35:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B0842A8CF for ; Wed, 25 Jul 2018 23:35:52 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 825716B0003; Wed, 25 Jul 2018 19:35:51 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 7D4566B0005; Wed, 25 Jul 2018 19:35:51 -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 676536B0006; Wed, 25 Jul 2018 19:35:51 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by kanga.kvack.org (Postfix) with ESMTP id 302DE6B0003 for ; Wed, 25 Jul 2018 19:35:51 -0400 (EDT) Received: by mail-pg1-f197.google.com with SMTP id n19-v6so5732686pgv.14 for ; Wed, 25 Jul 2018 16:35:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id; bh=yRO5KERYsPiaBRWI/EIcakyvKjZhSbPDV/u80h1oJ8s=; b=GZTRvRgbmsLRJJGoTc7qk0zHZfbttSFHpcm7tD3JnXEAccX/1YEcQNLSC9k/xY+867 VnU1aX/VrCl8eJhysEXKy29u8p4qQKdPERbJsLGGSz/PTMYcIN+xgjU3sRLHAc4ykLlp Pmp/u5m/BBJXvitEDoP1yXT7a7WflXOe4jKNE8kI9jy0x6vMbqtQEYVb9oortmgWYOrv 0yH31mE0MASCF2+UNBjrlpXfr/4BguBYEW2lFeQQouf79TN3xgQYgBFolQH687UcP5NW LN+xlkzVmNCDe7Hbkv+r+/3oa94js3WsPwO2RRqlvWF3VsHq/P1xmwTUA81QnxxnYRwF U0yQ== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of jiang.biao2@zte.com.cn designates 63.217.80.70 as permitted sender) smtp.mailfrom=jiang.biao2@zte.com.cn X-Gm-Message-State: AOUpUlEvNKLYNSiPcA4/9tc+Y3jRSGlfkTrMa5W16YuNgph2CM3E57KN xDq+ps1J1V7RR79K8H4tq/IJjUhe4wWq74cs8VFtPNTJnTdyD3Xv1bO86PnJtBN4n5JKK/htyOw /9+A0ujWo6WTTbh/kS6refCsvE7cxKr8Izhyzvck/OlMnrVPvEpNKZxGXZH6mQdrMTg== X-Received: by 2002:a63:d244:: with SMTP id t4-v6mr22576913pgi.335.1532561750876; Wed, 25 Jul 2018 16:35:50 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdTgdtyhMmb6jJ4CtSEfd154owBhWucwZjijgsudGuTSkYEPqX1PET0Eqth8Z9/bWdhPI6c X-Received: by 2002:a63:d244:: with SMTP id t4-v6mr22576872pgi.335.1532561749936; Wed, 25 Jul 2018 16:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532561749; cv=none; d=google.com; s=arc-20160816; b=jKM3Wr/glk9lhKFOK85k0Vo7xQLQpu5+IamjDvQUVcbgDNDkyyM0009jLI1dxdjKFT 6seS/Fdke2QLUWtTmWz0bm8Ll23az7G/PE0tM4tb5RTKWx6d13F3LeexMvlcq1b5nd21 DXTAwAAZF87hJczxjPbkpiJAlDxOi8egdMRc9DGsan6AQVPbaWVOGEGfnlLsUsx4Xsn/ 2vD4H1vZdFKNiCQpyBM1d8aDKdyV4DWfEo+2wYwYpQmuS1ZHsf1s9JSgdEgJNgV0i132 3JeDncypDnLLCM7IvDT9NGnOw4kmQDJdrBxL+lKbAAi92KR1Ek043QNuDldAM/Yy7HFF 6+Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=yRO5KERYsPiaBRWI/EIcakyvKjZhSbPDV/u80h1oJ8s=; b=B2PG9nkpAM6nEXCJ90WZch4cgRfbNaC+BrENXgVPCK/ioX0VBmxBXUD9umTXDrp6hx IITNzzPiLVtHFYI1agl2Z8wiHlUX/lDqpehlPTfdSQ3fOqRRzb9gh3Eemd6/m8pi7gSN BGojbIPtAesBMxtsjpp0nZL95Pc7sDRWdAm3sZLoY3kMkKnrzCPb7jWRZcTXvLsR3e6I FwYPuNUKLmL1pl6PHuJXeI1X0Og2IZnLo15AFGfkF3gmfxH1Y4Y9/0aqXLpEUasSuZxD YTNdubOzOAOgY35s58PLUUGlsL6Xadk4n5agq3+DkR6OA/i3Yums9JBrGZJ6lTAKu4X4 WEwg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of jiang.biao2@zte.com.cn designates 63.217.80.70 as permitted sender) smtp.mailfrom=jiang.biao2@zte.com.cn Received: from mxhk.zte.com.cn (mxhk.zte.com.cn. [63.217.80.70]) by mx.google.com with ESMTPS id g70-v6si16172089pfe.4.2018.07.25.16.35.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Jul 2018 16:35:49 -0700 (PDT) Received-SPF: pass (google.com: domain of jiang.biao2@zte.com.cn designates 63.217.80.70 as permitted sender) client-ip=63.217.80.70; Authentication-Results: mx.google.com; spf=pass (google.com: domain of jiang.biao2@zte.com.cn designates 63.217.80.70 as permitted sender) smtp.mailfrom=jiang.biao2@zte.com.cn Received: from mse01.zte.com.cn (unknown [10.30.3.20]) by Forcepoint Email with ESMTPS id 692E0F515ED87F742BD2; Thu, 26 Jul 2018 07:35:48 +0800 (CST) Received: from notes_smtp.zte.com.cn ([10.30.1.239]) by mse01.zte.com.cn with ESMTP id w6PNZiaC088258; Thu, 26 Jul 2018 07:35:44 +0800 (GMT-8) (envelope-from jiang.biao2@zte.com.cn) Received: from localhost.localdomain ([10.75.10.200]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2018072607354961-1838980 ; Thu, 26 Jul 2018 07:35:49 +0800 From: Jiang Biao To: akpm@linux-foundation.org, mhocko@suse.com, hannes@cmpxchg.org, hillf.zj@alibaba-inc.com, minchan@kernel.org, ying.huang@intel.com, mgorman@techsingularity.net Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, jiang.biao2@zte.com.cn, zhong.weidong@zte.com.cn Subject: [PATCH] mm/vmscan: fix page_freeze_refs in comment. Date: Thu, 26 Jul 2018 07:34:17 +0800 Message-Id: <1532561657-98783-1-git-send-email-jiang.biao2@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2018-07-26 07:35:49, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2018-07-26 07:35:32, Serialize complete at 2018-07-26 07:35:32 X-MAIL: mse01.zte.com.cn w6PNZiaC088258 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: X-Virus-Scanned: ClamAV using ClamSMTP page_freeze_refs has already been relplaced by page_ref_freeze, but it is not modified in the comment. Signed-off-by: Jiang Biao --- mm/vmscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 03822f8..d29e207 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -744,7 +744,7 @@ static int __remove_mapping(struct address_space *mapping, struct page *page, refcount = 2; if (!page_ref_freeze(page, refcount)) goto cannot_free; - /* note: atomic_cmpxchg in page_freeze_refs provides the smp_rmb */ + /* note: atomic_cmpxchg in page_refs_freeze provides the smp_rmb */ if (unlikely(PageDirty(page))) { page_ref_unfreeze(page, refcount); goto cannot_free;