From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754846AbbCROdB (ORCPT ); Wed, 18 Mar 2015 10:33:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52615 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754753AbbCROdA (ORCPT ); Wed, 18 Mar 2015 10:33:00 -0400 Message-ID: <55098C99.9040104@redhat.com> Date: Wed, 18 Mar 2015 10:32:57 -0400 From: Rik van Riel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: Michal Hocko , Andrew Morton CC: Al Viro , Johannes Weiner , Mel Gorman , Neil Brown , Tetsuo Handa , Sage Weil , Mark Fasheh , linux-mm@kvack.org, LKML Subject: Re: [PATCH] mm: Use GFP_KERNEL allocation for the page cache in page_cache_read References: <1426687766-518-1-git-send-email-mhocko@suse.cz> In-Reply-To: <1426687766-518-1-git-send-email-mhocko@suse.cz> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/18/2015 10:09 AM, Michal Hocko wrote: > diff --git a/mm/filemap.c b/mm/filemap.c > index 968cd8e03d2e..26f62ba79f50 100644 > --- a/mm/filemap.c > +++ b/mm/filemap.c > @@ -1752,7 +1752,7 @@ static int page_cache_read(struct file *file, pgoff_t offset) > int ret; > > do { > - page = page_cache_alloc_cold(mapping); > + page = __page_cache_alloc(GFP_KERNEL|__GFP_COLD); > if (!page) > return -ENOMEM; Won't this break on highmem systems, by failing to allocate the page cache from highmem, where previously it would?