From mboxrd@z Thu Jan 1 00:00:00 1970 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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 30E8AC433DF for ; Tue, 13 Oct 2020 23:53:06 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id BFC4D206D5 for ; Tue, 13 Oct 2020 23:53:05 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="EyqesZDl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BFC4D206D5 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 430A36B00DA; Tue, 13 Oct 2020 19:53:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3BD5F6B00DB; Tue, 13 Oct 2020 19:53:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 20D2F6B00DC; Tue, 13 Oct 2020 19:53:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0151.hostedemail.com [216.40.44.151]) by kanga.kvack.org (Postfix) with ESMTP id E3EA36B00DA for ; Tue, 13 Oct 2020 19:53:04 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8D6968249980 for ; Tue, 13 Oct 2020 23:53:04 +0000 (UTC) X-FDA: 77368555488.24.sort96_2d0854827207 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin24.hostedemail.com (Postfix) with ESMTP id 6A8BA1A4A0 for ; Tue, 13 Oct 2020 23:53:04 +0000 (UTC) X-HE-Tag: sort96_2d0854827207 X-Filterd-Recvd-Size: 2666 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf08.hostedemail.com (Postfix) with ESMTP for ; Tue, 13 Oct 2020 23:53:03 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 12263208B3; Tue, 13 Oct 2020 23:53:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602633183; bh=cn6ldKR3IkPtdx/kbbylkZ5qtcUPa+GUE3iMpq1iYM4=; h=Date:From:To:Subject:In-Reply-To:From; b=EyqesZDlHyxvsgn5S5q5X7Ri8pv0H+U/9dJOslqsZvKfqw9Yi0SsVXpzw7ZP33+6D XyjkZXhwGV6rT3yYhNEakcgEnt5iwVJDy2Gh5SanSKmRm+Mqd9Iy5PFyK6pl28iEZU pOcKfjbIOWLrG4q0nJS5srmWc2wvuDFSpkgEvZw0= Date: Tue, 13 Oct 2020 16:53:02 -0700 From: Andrew Morton To: akpm@linux-foundation.org, guro@fb.com, hannes@cmpxchg.org, linmiaohe@huawei.com, linux-mm@kvack.org, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 086/181] mm/page_counter: correct the obsolete func name in the comment of page_counter_try_charge() Message-ID: <20201013235302.UqOg1QVL0%akpm@linux-foundation.org> In-Reply-To: <20201013164658.3bfd96cc224d8923e66a9f4e@linux-foundation.org> User-Agent: s-nail v14.8.16 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: From: Miaohe Lin Subject: mm/page_counter: correct the obsolete func name in the comment of page_counter_try_charge() Since commit bbec2e15170a ("mm: rename page_counter's count/limit into usage/max"), page_counter_limit() is renamed to page_counter_set_max(). So replace page_counter_limit with page_counter_set_max in comment. Link: https://lkml.kernel.org/r/20200917113629.14382-1-linmiaohe@huawei.com Signed-off-by: Miaohe Lin Cc: Roman Gushchin Cc: Johannes Weiner Signed-off-by: Andrew Morton --- mm/page_counter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/page_counter.c~mm-page_counter-correct-the-obsolete-func-name-in-the-comment-of-page_counter_try_charge +++ a/mm/page_counter.c @@ -109,7 +109,7 @@ bool page_counter_try_charge(struct page * * The atomic_long_add_return() implies a full memory * barrier between incrementing the count and reading - * the limit. When racing with page_counter_limit(), + * the limit. When racing with page_counter_set_max(), * we either see the new limit or the setter sees the * counter has changed and retries. */ _