Message ID | 1526916033-4877-12-git-send-email-yehs2007@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 94A8B6032C for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 21 May 2018 15:23:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82AF628A26 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 21 May 2018 15:23:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7F37128AC8; Mon, 21 May 2018 15:23:12 +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 7A0DD28AF5 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 21 May 2018 15:21:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A0096B000E; Mon, 21 May 2018 11:21:39 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 5284E6B0010; Mon, 21 May 2018 11:21:39 -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 32EA06B0269; Mon, 21 May 2018 11:21:39 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id DF3F26B000E for <linux-mm@kvack.org>; Mon, 21 May 2018 11:21:38 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id n78-v6so9438814pfj.4 for <linux-mm@kvack.org>; Mon, 21 May 2018 08:21:38 -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:in-reply-to:references; bh=mIbmZ20teXfAmOTtwA1kFrQ87eKmr8IakHelnh9jX5M=; b=JaF6IYs1N7l0x6TzbY11mE0iH8s7kEyEXKX7NAcjBZKac6J8X8VzXZzKBnoFLO5Ulp lKqMF5w9dIAi7aInUftASKbwMzEfO5PGiLFA9rUZ6rIJ0I1cAMYK2UIOMHxOOuKAPuCv h0cWyCEMkJxrPXz3ZWE6AJuZayOOpOONR4TaUyOheiwaCAk+mN98D7lCEjejsWNsuRFH CL4//UUXd5DaFI3t5MuVig5n60MOBpQ+UWZXQH4jsq/aT7l/xKuUXVTb2EvvAvWIH7Yb 6+9vtr7L4OT2YYpHgV+qnP5Z5en7Tik2XssvejJHdp6xeKt5dMb37omQij0X38Sa4TTp 5nNQ== X-Gm-Message-State: ALKqPwdaBPG1iookBJFLdoPeT8d26kR3kZBZmJZAIkVIbnPUQ0rwq7Pd 1KymwSnfBFGMMYaOFYA+t4kugFu/JKh2Y1ftQmPQYrrxMK2Oab+V5VUwzYDJp6Han0FWIG0UkWK xqV4ZkE473qc6D4aDCq7KHFnhvAuf4Oat4u+os7DqHMKtHntbWg9gwmqO6rP5Tigou0iOAETf2a DwHlKzHXBQrb15JE3+h4bRSUezemTPd/VxFA3K49ya20WlJZz374TRdoCYr0IWoBoOamfwwP/HF sBRActOKuyKECzmBOQb4gDHDPtgYv22nYRS1h5w30JUT+qvX+V9Ukvn+L8Ue7ufR+byvNZtvmHR AIOZn+tzJPz67CG/jX0LDnqtrrO2sB/nyQVyzvnWW3mvoVNYAOTSOYReyMFVj1fSvLyVLikikCh X X-Received: by 2002:a17:902:8647:: with SMTP id y7-v6mr20548803plt.86.1526916098614; Mon, 21 May 2018 08:21:38 -0700 (PDT) X-Received: by 2002:a17:902:8647:: with SMTP id y7-v6mr20548774plt.86.1526916098055; Mon, 21 May 2018 08:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526916098; cv=none; d=google.com; s=arc-20160816; b=ihlfBtp8M2HsIi5RzDkWADER2U9wSF4HOAQiAyCZ7LlxvSvE502TGKdAhebOejVPRK TMA50EXunsutzkacMS9ggP7eCZJx3lw4OQIgResZ4wGFVYivAHfR91WMc0he7wobPRDh KRLGoPJV1AznOXgHlpjoqKpo+5L5Esi/IARtUALbwHV5yjYqudORykmqdHbxrFRgY3s+ pr0icLoQDbXRwlal4xTfY8PRi1PhE5ca+fXt2aS2RkKyiwC+0/CUC6xpdLXpvBTddtB4 y46zy9NkByZY9sDXb1wGnSKG4DTDflRE/vp96W/bd3JVOA0nDQKE0Wo4M16PAkTpx+v0 L2FQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=mIbmZ20teXfAmOTtwA1kFrQ87eKmr8IakHelnh9jX5M=; b=AHgBYTLjOmPFAf/XyCHw5+Ea7AaQ6KIpSiqCWG/YoaHyR7akgNJTFqWkWdqEZX7zhn 09MoY1gNyo39r6MRNCuQ7wd1RS0B4CWX6X8HiUmsAcGTpzy1yYqrgQZuzlFU7zQN08dN eXYwvDE9BNcxNFAzxvN0QkTXbgj7P16Pr3Laj1rG0qt3PWTy+/pkUKmb231oM4pwjGh3 6tNhVYIWZvsZdN1uUArTPApwBriCovhoVxXg8W/ULscrrP2vfAbLu8bD6ap1I+aKMmVQ Qs9A1IdNU78JamO5z9ajiczF+3gxqyFo2VEKja0fzDlExTPzs2Ne7mX6SvJ5NXrd8J9+ /9DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GbmDhgVt; 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 f64-v6sor6257939plf.118.2018.05.21.08.21.37 for <linux-mm@kvack.org> (Google Transport Security); Mon, 21 May 2018 08:21:38 -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=GbmDhgVt; 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:in-reply-to:references; bh=mIbmZ20teXfAmOTtwA1kFrQ87eKmr8IakHelnh9jX5M=; b=GbmDhgVtNMH+nf3TgHazciRIIQ9YrekdmtHvrY1ENxHN3k1DJEP9ZkLlyhfk7rCvjV oW+A/v3nKJCBI4RpiY8tbnephgbvcA0UTebxbqfXB29R3JswK2oIDmBiuMwu1CoWuru2 1VlKfJ/UHz8Ey6CfiuGFclQ0pzRg+MSWBxWCtIe/pJ7t4Bk6QuuGLm8zIRuKxQQdM+19 eXTOrphbXWLjQxmxXlUMrnJj0DAXI2F4rdQaHHalnLMqeiKeqVAGhxwOzksCb36IF0D7 Pr6iRW1OvVInVI9rxTF2hmo8uXGiZx6tEV+U4Bn1HOzGekJaQmKIwfPai6cQltqjLuzM vHeg== X-Google-Smtp-Source: AB8JxZr+oLHMSLuqYb/ZI2mVYYGNkmtN1FuZjw3vt+shfVrfBheiJb1XBhgdmJ0TQsYqtOhkJprquQ== X-Received: by 2002:a17:902:8b82:: with SMTP id ay2-v6mr20588580plb.295.1526916097846; Mon, 21 May 2018 08:21:37 -0700 (PDT) Received: from localhost.localdomain ([125.33.105.40]) by smtp.gmail.com with ESMTPSA id t14-v6sm30844344pfh.109.2018.05.21.08.21.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 08:21:37 -0700 (PDT) From: Huaisheng Ye <yehs2007@gmail.com> To: akpm@linux-foundation.org, linux-mm@kvack.org Cc: mhocko@suse.com, willy@infradead.org, vbabka@suse.cz, mgorman@techsingularity.net, kstewart@linuxfoundation.org, alexander.levin@verizon.com, 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 <yehs1@lenovo.com>, Thomas Gleixner <tglx@linutronix.de>, Philippe Ombredanne <pombredanne@nexb.com> Subject: [RFC PATCH v2 11/12] include/linux/highmem: update usage of movableflags Date: Mon, 21 May 2018 23:20:32 +0800 Message-Id: <1526916033-4877-12-git-send-email-yehs2007@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1526916033-4877-1-git-send-email-yehs2007@gmail.com> References: <1526916033-4877-1-git-send-email-yehs2007@gmail.com> 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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/linux/highmem.h b/include/linux/highmem.h index 776f90f..da34260 100644 --- a/include/linux/highmem.h +++ b/include/linux/highmem.h @@ -159,8 +159,8 @@ static inline void clear_user_highpage(struct page *page, unsigned long vaddr) struct vm_area_struct *vma, unsigned long vaddr) { - struct page *page = alloc_page_vma(GFP_HIGHUSER | movableflags, - vma, vaddr); + struct page *page = alloc_page_vma(movableflags ? + GFP_HIGHUSER_MOVABLE : GFP_HIGHUSER, vma, vaddr); if (page) clear_user_highpage(page, vaddr);