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=-8.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=ham 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 3DE90C2D0D1 for ; Thu, 19 Dec 2019 02:56:52 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id DE330222C2 for ; Thu, 19 Dec 2019 02:56:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DE330222C2 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 44F578E0152; Wed, 18 Dec 2019 21:56:51 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3FF418E00F5; Wed, 18 Dec 2019 21:56:51 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 31DA58E0152; Wed, 18 Dec 2019 21:56:51 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0059.hostedemail.com [216.40.44.59]) by kanga.kvack.org (Postfix) with ESMTP id 1C8DE8E00F5 for ; Wed, 18 Dec 2019 21:56:51 -0500 (EST) Received: from smtpin07.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id B8ADF2C98 for ; Thu, 19 Dec 2019 02:56:50 +0000 (UTC) X-FDA: 76280378580.07.club66_1e94369bb0730 X-HE-Tag: club66_1e94369bb0730 X-Filterd-Recvd-Size: 3250 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by imf07.hostedemail.com (Postfix) with ESMTP for ; Thu, 19 Dec 2019 02:56:49 +0000 (UTC) X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2019 18:56:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,330,1571727600"; d="scan'208";a="416044730" Received: from richard.sh.intel.com (HELO localhost) ([10.239.159.54]) by fmsmga005.fm.intel.com with ESMTP; 18 Dec 2019 18:56:46 -0800 Date: Thu, 19 Dec 2019 10:56:45 +0800 From: Wei Yang To: David Hildenbrand Cc: Wei Yang , akpm@linux-foundation.org, cai@lca.pw, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [Patch v2] mm: remove dead code totalram_pages_set() Message-ID: <20191219025645.GA5741@richard> Reply-To: Wei Yang References: <20191218005543.24146-1-richardw.yang@linux.intel.com> <20795dc0-8f6c-73cd-c98f-636f4ac59154@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20795dc0-8f6c-73cd-c98f-636f4ac59154@redhat.com> User-Agent: Mutt/1.9.4 (2018-02-28) 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: On Wed, Dec 18, 2019 at 09:46:58AM +0100, David Hildenbrand wrote: >On 18.12.19 01:55, Wei Yang wrote: >> No one uses totalram_pages_set(), just remove it. >> >> Fixes: ca79b0c211af ("mm: convert totalram_pages and totalhigh_pages >> variables to atomic") > >Hi Wei, thanks for the update. > >We should really avoid "Fixes" tags here. This is neither a bugfix nor a >compile fix. > Agree, when I pick up this tags, I am a little not sure whether this is correct. >@Andrew, can you fix that up to: >"Last user was removed in commit ca79b0c211af ("mm: convert >totalram_pages and totalhigh_pages variables to atomic")." > Hmm... this one is not that exact. This function is introduced in commit ca79b0c211af and no one use it on its birth. Maybe we need to change it to: totalram_pages_set() is introduced in commit ca79b0c211af ("mm: convert totalram_pages and totalhigh_pages variables to atomic"), but no one use it. Thanks for your comments:-) >Cheers! > >> >> Signed-off-by: Wei Yang >> Reviewed-by: David Hildenbrand >> >> --- >> v2: fix typo and points which commit introduce it. >> --- >> include/linux/mm.h | 5 ----- >> 1 file changed, 5 deletions(-) >> >> diff --git a/include/linux/mm.h b/include/linux/mm.h >> index 74232b28949b..4cf023c4c6b3 100644 >> --- a/include/linux/mm.h >> +++ b/include/linux/mm.h >> @@ -70,11 +70,6 @@ static inline void totalram_pages_add(long count) >> atomic_long_add(count, &_totalram_pages); >> } >> >> -static inline void totalram_pages_set(long val) >> -{ >> - atomic_long_set(&_totalram_pages, val); >> -} >> - >> extern void * high_memory; >> extern int page_cluster; >> >> > > >-- >Thanks, > >David / dhildenb -- Wei Yang Help you, Help me