From patchwork Wed May 23 17:13:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huaisheng Ye X-Patchwork-Id: 10421947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3EC8C60224 for ; Wed, 23 May 2018 17:14:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 30318290E0 for ; Wed, 23 May 2018 17:14:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24166290E2; Wed, 23 May 2018 17:14:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 038E2290E0 for ; Wed, 23 May 2018 17:14:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C23326B026C; Wed, 23 May 2018 13:14:12 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id BAABB6B026D; Wed, 23 May 2018 13:14:12 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A4C176B026E; Wed, 23 May 2018 13:14:12 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f200.google.com (mail-pf0-f200.google.com [209.85.192.200]) by kanga.kvack.org (Postfix) with ESMTP id 6229D6B026C for ; Wed, 23 May 2018 13:14:12 -0400 (EDT) Received: by mail-pf0-f200.google.com with SMTP id s3-v6so13494184pfh.0 for ; Wed, 23 May 2018 10:14:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id; bh=Jc5ICXCG0sq4ebqr99PgbA0c2yw6j3epJGQUQjIuc40=; b=op1TWLseephIjEz5X4MysRFSDnsLd2e2VbEl6pufVMdTrDJFOQy+MC9PLYfMsDBnhG TJSK5Qs7DmYfMnPmIZwN/wGJehq3UbnoM2uyoyludz4WHxjnFFOFFBRrKC35own3umOw sjcjIPFNj/u/no4JIImr2td82WYoFvdA32Hwbn/fs+sItK5jt/nXyU79xP/2Q6E3+BdP nUqhDMV+Gj3acqIqNe/kHWP2YfLOiuXAxkmRZJJr7XZ4vw6SxJJjjXZcGXrVksTOJcPC k6p42vene8meE+89fmt5oKF6VU87A2paCF0/wHDmZfVBIuAColcFyJXuNvXTtJPunGg2 V/Aw== X-Gm-Message-State: ALKqPwf2bRyruEqusenaxtwiOqjfSU29rWgeP813+ioiNqS28p3J+E2z ijaBIhxvGb3tkUQQvaXI3dwJc0n18Yq77HvwYp9N+juFX0p9/WkFkRLVeiyaRMiRNtpKkT2cnwf WXK8n8m6fu3EAzHZsGMFKulJJhyAWKU0SeEisa7djAIScJHNJdP37IYLzAtFvaMFBjEAK7x/l0X m6Ze0/Nv9qYZoCIP35HpLNHAg9HkHK3N5WFfeGnhvjdaUv4E+2XrxX42O3CJpxvLT49R/0q4hDI tPst59G52DdPePeX6H5diND1dFzSWeEBjDHtgxPrUHWUnYZYLn/qiafMMmIjavZ+/FU/0bg8gz9 gB3pKV+77tD5hQT7TZpLzyEVqezc6MziYbWITx02eGctA5yC52b8gd2712zpLfz0WQRj9XUacut / X-Received: by 2002:a65:608c:: with SMTP id t12-v6mr2913756pgu.182.1527095652071; Wed, 23 May 2018 10:14:12 -0700 (PDT) X-Received: by 2002:a65:608c:: with SMTP id t12-v6mr2913720pgu.182.1527095651132; Wed, 23 May 2018 10:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527095651; cv=none; d=google.com; s=arc-20160816; b=FWkNElUSC1xaFuGADzjq/2J3oBpIeXTs/Ew5pMHAQZ1Yx3Fi7ahdP6/Y7TIvZwxExF uKQuHynyOrLTOSuo886MxJo982t3WhpKaXcLW4rDP6vGmDS+P8He2mowa2FntmxbLewX gMBN0h62om5lW7FSpNgvy7+RHC6J2peNgp+fARKZIJ6JZdCYf02lqDbismkgL9jtUORy cKzBfkpwYJycUtH8w4s/rBzPIcH66TCcKj4kBxvSrf7OHj8Baa86i5jyhniGuE9hHvNU SLX5EwAYEw9W/M1hc2hJ8rAkqUWP6XQO18GB/ZopaXbnUBjLfdLVS83BD4Zf4UXg5Zgn +C3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Jc5ICXCG0sq4ebqr99PgbA0c2yw6j3epJGQUQjIuc40=; b=vWQigD5ufAegTLp0X9OJ242B42tYYqDfj37l1g19JL5G1aM9DOtJoWgYe7Brs6wLBs 2DCpttxnrIDnEP9gC7gFg78H96xuhIAkDNiAgbQfR/hi+mHJ3F2UsO0rCRrEB2+a/dfl ejUEkrmxaON2pTbE9zahpeX+qKJa6WBvXSxt0lveuSbz1YCzLEUXSGcH9KXzAG1eGh3b h5oc5TC60rLKqlfza/0f5djrWYrD82EU66XQ+lUlzO7yzhXrilZlWZVhV+nsJc+vZYmQ sM1/aFeK3phNH6jc7ihiYNdutemEGS8BskNqkCLaJ0zVXDVazbNMYGukG08bINwwo03O DS8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pvwCJlp6; spf=pass (google.com: domain of yehs2007@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=yehs2007@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id f8-v6sor4810852pgu.7.2018.05.23.10.14.11 for (Google Transport Security); Wed, 23 May 2018 10:14:11 -0700 (PDT) Received-SPF: pass (google.com: domain of yehs2007@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=pvwCJlp6; spf=pass (google.com: domain of yehs2007@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=yehs2007@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Jc5ICXCG0sq4ebqr99PgbA0c2yw6j3epJGQUQjIuc40=; b=pvwCJlp6VQwNHzJ2Eez7FcJBMguxV1WqXPR0KveldKArBXprc66IiIfYsOb144DFGl YxMkOw3rp1eqMAA/+I0jTSN+rE8tQmYPiA90ihuF72KFdKlK/T1GjMtREcIOeaaD0P1k VnpKb4mks7hhSAWjUNYM9010lUqZTZ44T67ukPWPhbMQWKC5nVAD31rnzhfL42g8tIpR MP/V+rmD0xxQBVPlc04HOSeAtPaL8kt6sYFykoz3+0HsjjUahcUlJi3agZiAckglBj8Q yUnBmGrHZpZAucvARjPF2mF5ITwICt4NccdNmjJ+2wEptNZlfGH2QUa/nKrLu8pGC9ST +5OA== X-Google-Smtp-Source: AB8JxZorUSONWZo32qfGcRK1YhrjwyNV60ZkDMdev/1XyUs8Ut+gZ/ytxQlS07eumHCbEeUQ3zMHfA== X-Received: by 2002:a63:b907:: with SMTP id z7-v6mr3045301pge.9.1527095650895; Wed, 23 May 2018 10:14:10 -0700 (PDT) Received: from localhost.localdomain ([123.120.56.60]) by smtp.gmail.com with ESMTPSA id 68-v6sm32283090pff.35.2018.05.23.10.14.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 May 2018 10:14:10 -0700 (PDT) From: Huaisheng Ye To: akpm@linux-foundation.org, linux-mm@kvack.org Cc: mhocko@suse.com, willy@infradead.org, hch@lst.de, vbabka@suse.cz, mgorman@techsingularity.net, kstewart@linuxfoundation.org, gregkh@linuxfoundation.org, colyli@suse.de, chengnt@lenovo.com, hehy1@lenovo.com, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, xen-devel@lists.xenproject.org, linux-btrfs@vger.kernel.org, Huaisheng Ye , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "x86@kernel.org" , Philippe Ombredanne , Christoph Hellwig Subject: [RFC PATCH v3 9/9] arch/x86/include/asm/page.h: update usage of movableflags Date: Thu, 24 May 2018 01:13:41 +0800 Message-Id: <1527095621-5574-1-git-send-email-yehs2007@gmail.com> X-Mailer: git-send-email 1.8.3.1 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP From: Huaisheng Ye GFP_HIGHUSER_MOVABLE doesn't equal to GFP_HIGHUSER | __GFP_MOVABLE, modify it to adapt patch of getting rid of GFP_ZONE_TABLE/BAD. Signed-off-by: Huaisheng Ye Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: Kate Stewart Cc: Greg Kroah-Hartman Cc: x86@kernel.org Cc: Philippe Ombredanne Cc: Christoph Hellwig --- arch/x86/include/asm/page.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/page.h b/arch/x86/include/asm/page.h index 7555b48..a47f42d 100644 --- a/arch/x86/include/asm/page.h +++ b/arch/x86/include/asm/page.h @@ -35,7 +35,8 @@ static inline void copy_user_page(void *to, void *from, unsigned long vaddr, } #define __alloc_zeroed_user_highpage(movableflags, vma, vaddr) \ - alloc_page_vma(GFP_HIGHUSER | __GFP_ZERO | movableflags, vma, vaddr) + alloc_page_vma((movableflags ? GFP_HIGHUSER_MOVABLE : GFP_HIGHUSER) \ + | __GFP_ZERO, vma, vaddr) #define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE #ifndef __pa