Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp595083imm; Wed, 26 Sep 2018 03:57:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV61XSeDlTbQ9pti8FGg26znCRa2fjB7FVDfrNCoFfHphQxEjgGAO7KdK0TSiBQJWiufD0u/L X-Received: by 2002:a17:902:f085:: with SMTP id go5mr5610687plb.241.1537959470815; Wed, 26 Sep 2018 03:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537959470; cv=none; d=google.com; s=arc-20160816; b=hAQzMZFQi0A4tVk4ndX53g0ji3zcNv/7vUYN7AwfhR2OuqB1xFyYo31SPl/9DNILsm IHkCyy/rNSOwzh767VdASSD4JYyJhAi4n5hs5iFBYP3ouFFRGmWNCqHvw0ttaYUhlWFV bLXQ/h4/T+3agL8Tk+q8ltMw876lKRJSjBRJHZ/SRl6msl1xO4+Re8jrLTYTmu3Kx3Xg WfJDnXiALwIWsCOutRrhM7D5oBVeqL8R7EFXb7c/+SbwseAsJAZ8Qqy8f4D71SC9D2L8 r9qjGkHVEJS0Byohk/H3z2MmFQYEJKAN3L0/4qevt0QKseiBRzzxY7XncRgxx4UOqTGB A5hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature:dkim-signature; bh=eFKMOA5dfqSSCstoFuy5jZPbNHnIoMMs9VOH5jQ/RRs=; b=AVJzCFhtLIW/bx9nwFoY8G1Fnf1dMbyeW3+2lAPZ/ViJHjprF/ScS8yS/8u5exhrBe ssHvoGslEh+r5kJ6kowKwve+dITGCzYR2Br5+dQoJUH5ftw967a0EjMdjIQERVxB5sKd eMSwTNCCewKiah0gmNfsh3GIEuwmdQ8SvoEcVHYeEkhlN/nN831o+eISlDVqLTkyyunG HclRVFQSHIXQTUP3W/FgLpeiGV3l6tktvNVxBz/tMazmD9tY3H8Bj8OMrNy/cEUrJ67J skDFRvSXpjOUzCWrD6LIJ3JftyoE0CprSS39M0ClJl2mn5UpI+9ABWXdVBTUJvusBfnt 96Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oVuYic0W; dkim=pass header.i=@codeaurora.org header.s=default header.b=d4uApI+D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7-v6si4674601pfa.109.2018.09.26.03.57.35; Wed, 26 Sep 2018 03:57:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=oVuYic0W; dkim=pass header.i=@codeaurora.org header.s=default header.b=d4uApI+D; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727556AbeIZRJd (ORCPT + 99 others); Wed, 26 Sep 2018 13:09:33 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:46178 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbeIZRJc (ORCPT ); Wed, 26 Sep 2018 13:09:32 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 33CC060B7F; Wed, 26 Sep 2018 10:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537959429; bh=urXs/vuWlgUoV8sTCZnJNBxRcUZRM5qK76HzwwxSMQY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=oVuYic0Wtj1YB8VvSG7cX8jmKSlysWVetMX3avmIvXjfBsMVWJ6+ENFUMT7lJNo8y Ea/BBGRXsABGZb0k1T90xM1oTs0Nel8QzOIXfRGYv6Pf7EXYU8GsTXY00hzS4q+oU0 mpt6BU7lIA8pV5y+okDkghE9kg0oPaby/ty01Ejk= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.codeaurora.org (Postfix) with ESMTP id 20385605FD; Wed, 26 Sep 2018 10:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537959428; bh=urXs/vuWlgUoV8sTCZnJNBxRcUZRM5qK76HzwwxSMQY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=d4uApI+DrktoTjyrHJq/SnAZWOGmu5SXG5ZnJFI/e8GDSlOX7qYnAfCFGYT1wOkSa iV9lRvX4O6fuvhXJVhA110sR54Lk8p6/RlNbMvUQXeOyWJyGdN2VtJoLVkoamLyte2 m1nPyu1rcMauYXubdUnEpg5sEwkAk0CSifUlPxdY= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 26 Sep 2018 16:27:08 +0530 From: Arun KS To: Michal Hocko Cc: Vlastimil Babka , kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, boris.ostrovsky@oracle.com, jgross@suse.com, akpm@linux-foundation.org, dan.j.williams@intel.com, iamjoonsoo.kim@lge.com, osalvador@suse.de, malat@debian.org, yasu.isimatu@gmail.com, devel@linuxdriverproject.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, xen-devel@lists.xenproject.org, vatsa@codeaurora.org, vinmenon@codeaurora.org, getarunks@gmail.com Subject: Re: [PATCH v2] memory_hotplug: Free pages as higher order In-Reply-To: <20180925181826.GW18685@dhcp22.suse.cz> References: <1537854158-9766-1-git-send-email-arunks@codeaurora.org> <20180925181826.GW18685@dhcp22.suse.cz> Message-ID: X-Sender: arunks@codeaurora.org User-Agent: Roundcube Webmail/1.2.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-09-25 23:48, Michal Hocko wrote: > On Tue 25-09-18 11:59:09, Vlastimil Babka wrote: > [...] >> This seems like almost complete copy of __free_pages_boot_core(), >> could >> you do some code reuse instead? I think Michal Hocko also suggested >> that. > > Yes, please try to reuse as much code as possible Sure, Will address in next spin. Regards, Arun