Message ID | CAH+eYFBhO9P7V7Nf+yi+vFPveBks7SFKRHfkz3JOQMBKqnkkUQ@mail.gmail.com |
---|---|
State | New |
Headers | show
Return-Path: <patch+caf_=linaro-patchwork=canonical.com@linaro.org> X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 3FC3323E1B for <patchwork@peony.canonical.com>; Thu, 5 Jul 2012 14:59:39 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id E2B5CA18917 for <linaro-patchwork@canonical.com>; Thu, 5 Jul 2012 14:59:38 +0000 (UTC) Received: by ghbz12 with SMTP id z12so8109548ghb.11 for <linaro-patchwork@canonical.com>; Thu, 05 Jul 2012 07:59:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf :dkim-signature:mime-version:in-reply-to:references:from:date :x-google-sender-auth:message-id:to:x-mailman-approved-at:cc:subject :x-beenthere:x-mailman-version:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:content-type :content-transfer-encoding:sender:errors-to:x-gm-message-state; bh=ueFGK5hhv5x3f6mXThd/I4ypo7Mj2gcAL//6XeX4aYk=; b=SA2Bf4toJYp6VQhdBCCB7Z+FJFhoaQyQZQR76hEN1KVm+6iA/VMPjIwgTEUyjkIDmk FIAt3dNcJpZtdmg9Nf78P3d6XaxozrcCobTeCaGcjqSlJWE680SPyj/ukVqN6xSB6uax CQYyVXvfpA1D45oDgW2pJiEjugPJnS+LoxXVf2EByanj2lUFwYzl13mJePoXhdzCmCXZ 2wduRLsN9M9AraSu7/xPNz5MYrR9jH9DmId9eYG0c/qKjr74MRoV+5NkmZp3z2PcBE4p OhQZZvkJDH915F98IenxotfGfsa6xoNwqYgd9/8qkQq/rRqOEaOenOh0BXl6tRl6oCai HV5Q== Received: by 10.42.89.72 with SMTP id f8mr13796136icm.33.1341500378003; Thu, 05 Jul 2012 07:59:38 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp66978ibb; Thu, 5 Jul 2012 07:59:37 -0700 (PDT) Received: by 10.204.157.18 with SMTP id z18mr13069841bkw.16.1341500376606; Thu, 05 Jul 2012 07:59:36 -0700 (PDT) Received: from mombin.canonical.com (mombin.canonical.com. [91.189.95.16]) by mx.google.com with ESMTP id hg14si22850534bkc.4.2012.07.05.07.59.35; Thu, 05 Jul 2012 07:59:36 -0700 (PDT) Received-SPF: neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) client-ip=91.189.95.16; Authentication-Results: mx.google.com; spf=neutral (google.com: 91.189.95.16 is neither permitted nor denied by best guess record for domain of linaro-mm-sig-bounces@lists.linaro.org) smtp.mail=linaro-mm-sig-bounces@lists.linaro.org; dkim=neutral (body hash did not verify) header.i=@gmail.com Received: from localhost ([127.0.0.1] helo=mombin.canonical.com) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from <linaro-mm-sig-bounces@lists.linaro.org>) id 1SmnWg-0000Su-WB; Thu, 05 Jul 2012 14:59:27 +0000 Received: from mail-bk0-f42.google.com ([209.85.214.42]) by mombin.canonical.com with esmtp (Exim 4.71) (envelope-from <rabin.vincent@gmail.com>) id 1SmiN3-0001c3-40 for linaro-mm-sig@lists.linaro.org; Thu, 05 Jul 2012 09:29:09 +0000 Received: by bkcjm19 with SMTP id jm19so3223163bkc.1 for <linaro-mm-sig@lists.linaro.org>; Thu, 05 Jul 2012 02:29:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=4YJA1S5oaMLo0V4kktyR6rkOAtazSjXe/giWNnYXyb8=; b=ovODlLF4+zIJ152g/mM8rYCThU0/LCvuRawxisnB30RoSDa6ZQ9b3iSOk3ur5ZQe33 mNs5lp4dwIeF8k45JpIXv1aSG84VGjM+9F7oxHNT2saRHX91cUq3b3K14xCzFBmG+1F7 NGYVWmXJkBJlWi6Z/BIs0CF+ba2MuHFVEyPYUIXpa04M9tdCLcExjl5TrejD6rZ1xBXM FDvVThxpIXl8UsQs21Xlhlr69ZRxr26n3BuEYNNxhUf5xkXTTkmmsG6wLDOdRkWymo0b XWAo5SBN9SRJtcHDKTv8IGXmqvpZ11FH1A7A7+D3tNe8eleDIoOO1nogrxkOimn6/ODL KKbA== Received: by 10.204.10.70 with SMTP id o6mr2340153bko.31.1341480547814; Thu, 05 Jul 2012 02:29:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.40.207 with HTTP; Thu, 5 Jul 2012 02:28:27 -0700 (PDT) In-Reply-To: <4FAD89DC.2090307@codeaurora.org> References: <4FAC200D.2080306@codeaurora.org> <02fc01cd2f50$5d77e4c0$1867ae40$%szyprowski@samsung.com> <4FAD89DC.2090307@codeaurora.org> From: Rabin Vincent <rabin@rab.in> Date: Thu, 5 Jul 2012 14:58:27 +0530 X-Google-Sender-Auth: ZFWfAZKGbeirMN37qfqlgMBk3II Message-ID: <CAH+eYFBhO9P7V7Nf+yi+vFPveBks7SFKRHfkz3JOQMBKqnkkUQ@mail.gmail.com> To: Marek Szyprowski <m.szyprowski@samsung.com>, Michal Nazarewicz <mina86@mina86.com> X-Mailman-Approved-At: Thu, 05 Jul 2012 14:59:25 +0000 Cc: linux-arm-msm@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>, linaro-mm-sig@lists.linaro.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org Subject: Re: [Linaro-mm-sig] Bad use of highmem with buffer_migrate_page? X-BeenThere: linaro-mm-sig@lists.linaro.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Unified memory management interest group." <linaro-mm-sig.lists.linaro.org> List-Unsubscribe: <http://lists.linaro.org/mailman/options/linaro-mm-sig>, <mailto:linaro-mm-sig-request@lists.linaro.org?subject=unsubscribe> List-Archive: <http://lists.linaro.org/pipermail/linaro-mm-sig> List-Post: <mailto:linaro-mm-sig@lists.linaro.org> List-Help: <mailto:linaro-mm-sig-request@lists.linaro.org?subject=help> List-Subscribe: <http://lists.linaro.org/mailman/listinfo/linaro-mm-sig>, <mailto:linaro-mm-sig-request@lists.linaro.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: linaro-mm-sig-bounces@lists.linaro.org Errors-To: linaro-mm-sig-bounces@lists.linaro.org X-Gm-Message-State: ALoCoQnN121TW15LsEJdW+ie+ibiZ01GC+HjDgLRZj8z2he5G9IzBBiI9ENAVK3GqPi7/UJToUTy |
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 4403009..4a4f921 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5635,7 +5635,12 @@ static struct page * __alloc_contig_migrate_alloc(struct page *page, unsigned long private, int **resultp) { - return alloc_page(GFP_HIGHUSER_MOVABLE); + gfp_t gfp_mask = GFP_USER | __GFP_MOVABLE; + + if (PageHighMem(page)) + gfp_mask |= __GFP_HIGHMEM; + + return alloc_page(gfp_mask); } /* [start, end) must belong to a single zone. */