From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752207AbbKPVOx (ORCPT ); Mon, 16 Nov 2015 16:14:53 -0500 Received: from mail-pa0-f49.google.com ([209.85.220.49]:34720 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751978AbbKPVOw (ORCPT ); Mon, 16 Nov 2015 16:14:52 -0500 Date: Mon, 16 Nov 2015 13:14:49 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: mhocko@kernel.org cc: Andrew Morton , Mel Gorman , linux-mm@kvack.org, LKML , Michal Hocko Subject: Re: [PATCH 1/2] mm: get rid of __alloc_pages_high_priority In-Reply-To: <1447680139-16484-2-git-send-email-mhocko@kernel.org> Message-ID: References: <1447680139-16484-1-git-send-email-mhocko@kernel.org> <1447680139-16484-2-git-send-email-mhocko@kernel.org> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Nov 2015, mhocko@kernel.org wrote: > From: Michal Hocko > > __alloc_pages_high_priority doesn't do anything special other than it > calls get_page_from_freelist and loops around GFP_NOFAIL allocation > until it succeeds. It would be better if the first part was done in > __alloc_pages_slowpath where we modify the zonelist because this would > be easier to read and understand. Opencoding the function into its only > caller allows to simplify it a bit as well. > > This patch doesn't introduce any functional changes. > > Signed-off-by: Michal Hocko Acked-by: David Rientjes