From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f71.google.com (mail-pg0-f71.google.com [74.125.83.71]) by kanga.kvack.org (Postfix) with ESMTP id A37846B0253 for ; Sat, 17 Dec 2016 22:12:58 -0500 (EST) Received: by mail-pg0-f71.google.com with SMTP id q10so303252855pgq.7 for ; Sat, 17 Dec 2016 19:12:58 -0800 (PST) Received: from shards.monkeyblade.net (shards.monkeyblade.net. [184.105.139.130]) by mx.google.com with ESMTP id e63si14024085plb.279.2016.12.17.19.12.57 for ; Sat, 17 Dec 2016 19:12:57 -0800 (PST) Date: Sat, 17 Dec 2016 22:12:55 -0500 (EST) Message-Id: <20161217.221255.1870405962737594028.davem@davemloft.net> Subject: Re: [RFC PATCH 05/14] sparc64: Add PAGE_SHR_CTX flag From: David Miller In-Reply-To: <1481913337-9331-6-git-send-email-mike.kravetz@oracle.com> References: <1481913337-9331-1-git-send-email-mike.kravetz@oracle.com> <1481913337-9331-6-git-send-email-mike.kravetz@oracle.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: mike.kravetz@oracle.com Cc: sparclinux@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, bob.picco@oracle.com, nitin.m.gupta@oracle.com, vijay.ac.kumar@oracle.com, julian.calaby@gmail.com, adam.buchbinder@gmail.com, kirill.shutemov@linux.intel.com, mhocko@suse.com, akpm@linux-foundation.org From: Mike Kravetz Date: Fri, 16 Dec 2016 10:35:28 -0800 > @@ -166,6 +166,7 @@ bool kern_addr_valid(unsigned long addr); > #define _PAGE_EXEC_4V _AC(0x0000000000000080,UL) /* Executable Page */ > #define _PAGE_W_4V _AC(0x0000000000000040,UL) /* Writable */ > #define _PAGE_SOFT_4V _AC(0x0000000000000030,UL) /* Software bits */ > +#define _PAGE_SHR_CTX_4V _AC(0x0000000000000020,UL) /* Shared Context */ > #define _PAGE_PRESENT_4V _AC(0x0000000000000010,UL) /* Present */ > #define _PAGE_RESV_4V _AC(0x0000000000000008,UL) /* Reserved */ > #define _PAGE_SZ16GB_4V _AC(0x0000000000000007,UL) /* 16GB Page */ You really don't need this. The VMA is available, and you can obtain the information you need about whether this is a shared mapping or not from the. It just isn't being passed down into things like set_huge_pte_at(). Simply make it do so. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org