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=-5.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 2B866C43465 for ; Mon, 21 Sep 2020 15:58:43 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 7DA7F2151B for ; Mon, 21 Sep 2020 15:58:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7DA7F2151B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id A73E96B0125; Mon, 21 Sep 2020 11:58:41 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id A24CF6B0126; Mon, 21 Sep 2020 11:58:41 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 9619E6B0127; Mon, 21 Sep 2020 11:58:41 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0130.hostedemail.com [216.40.44.130]) by kanga.kvack.org (Postfix) with ESMTP id 8023D6B0125 for ; Mon, 21 Sep 2020 11:58:41 -0400 (EDT) Received: from smtpin21.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 3BA758249980 for ; Mon, 21 Sep 2020 15:58:41 +0000 (UTC) X-FDA: 77287526442.21.waste20_030dc8427146 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin21.hostedemail.com (Postfix) with ESMTP id 16FA9180442C3 for ; Mon, 21 Sep 2020 15:58:41 +0000 (UTC) X-HE-Tag: waste20_030dc8427146 X-Filterd-Recvd-Size: 2375 Received: from outbound-smtp26.blacknight.com (outbound-smtp26.blacknight.com [81.17.249.194]) by imf31.hostedemail.com (Postfix) with ESMTP for ; Mon, 21 Sep 2020 15:58:40 +0000 (UTC) Received: from mail.blacknight.com (pemlinmail01.blacknight.ie [81.17.254.10]) by outbound-smtp26.blacknight.com (Postfix) with ESMTPS id C5C43CAB6B for ; Mon, 21 Sep 2020 16:58:38 +0100 (IST) Received: (qmail 27922 invoked from network); 21 Sep 2020 15:58:38 -0000 Received: from unknown (HELO techsingularity.net) (mgorman@techsingularity.net@[84.203.21.127]) by 81.17.254.9 with ESMTPSA (AES256-SHA encrypted, authenticated); 21 Sep 2020 15:58:38 -0000 Date: Mon, 21 Sep 2020 16:58:37 +0100 From: Mel Gorman To: Mike Rapoport Cc: mateusznosek0@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [RFC PATCH] mm/page_alloc.c: clean code by merging two functions Message-ID: <20200921155837.GH3179@techsingularity.net> References: <20200916110118.6537-1-mateusznosek0@gmail.com> <20200921123607.GT2142832@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20200921123607.GT2142832@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) 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 Mon, Sep 21, 2020 at 03:36:07PM +0300, Mike Rapoport wrote: > Hi, > > (added Mel) > > On Wed, Sep 16, 2020 at 01:01:18PM +0200, mateusznosek0@gmail.com wrote: > > From: Mateusz Nosek > > > > The 'finalise_ac' function is just 'epilogue' for 'prepare_alloc_pages'. > > Therefore there is no need to keep them both so 'finalise_ac' content can > > be merged into 'prepare_alloc_pages' code. It would make > > '__alloc_pages_nodemask' cleaner when it comes to readability. > > These functions were split from alloc_pages_nodemask() by commit > 9cd7555875bb ("mm, page_alloc: split alloc_pages_nodemask()"), so at the > very least I'd add Mel to 'cc. > The changelog explains the intent. At the time, there was demand for a bulk page allocator for networking support and one was prototyped https://lore.kernel.org/lkml/20170109163518.6001-5-mgorman@techsingularity.net/ but the networking side to consume the interface was never finished. -- Mel Gorman SUSE Labs