From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969301AbdDTIaT (ORCPT ); Thu, 20 Apr 2017 04:30:19 -0400 Received: from mx2.suse.de ([195.135.220.15]:58904 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967402AbdDTI3y (ORCPT ); Thu, 20 Apr 2017 04:29:54 -0400 Subject: Re: [PATCH 7/9] mm, memory_hotplug: replace for_device by want_memblock in arch_add_memory To: Michal Hocko , linux-mm@kvack.org References: <20170410110351.12215-1-mhocko@kernel.org> <20170410110351.12215-8-mhocko@kernel.org> Cc: Andrew Morton , Mel Gorman , Andrea Arcangeli , Jerome Glisse , Reza Arbab , Yasuaki Ishimatsu , qiuxishi@huawei.com, Kani Toshimitsu , slaoub@gmail.com, Joonsoo Kim , Andi Kleen , David Rientjes , Daniel Kiper , Igor Mammedov , Vitaly Kuznetsov , LKML , Michal Hocko , Dan Williams From: Vlastimil Babka Message-ID: <13134523-80c2-92bc-ec4c-11d9e34f94a3@suse.cz> Date: Thu, 20 Apr 2017 10:29:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170410110351.12215-8-mhocko@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/10/2017 01:03 PM, Michal Hocko wrote: > From: Michal Hocko > > arch_add_memory gets for_device argument which then controls whether we > want to create memblocks for created memory sections. Simplify the logic > by telling whether we want memblocks directly rather than going through > pointless negation. This also makes the api easier to understand because > it is clear what we want rather than nothing telling for_device which > can mean anything. > > This shouldn't introduce any functional change. > > Cc: Dan Williams > Signed-off-by: Michal Hocko Acked-by: Vlastimil Babka