From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f199.google.com (mail-wr0-f199.google.com [209.85.128.199]) by kanga.kvack.org (Postfix) with ESMTP id AFD2C440844 for ; Mon, 10 Jul 2017 07:32:22 -0400 (EDT) Received: by mail-wr0-f199.google.com with SMTP id u110so23442474wrb.14 for ; Mon, 10 Jul 2017 04:32:22 -0700 (PDT) Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id s6si6458778wmd.8.2017.07.10.04.32.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jul 2017 04:32:21 -0700 (PDT) Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v6ABUnCQ137432 for ; Mon, 10 Jul 2017 07:32:20 -0400 Received: from e23smtp01.au.ibm.com (e23smtp01.au.ibm.com [202.81.31.143]) by mx0a-001b2d01.pphosted.com with ESMTP id 2bjvs2sdm9-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 10 Jul 2017 07:32:19 -0400 Received: from localhost by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 10 Jul 2017 21:32:17 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay07.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v6ABWDFY14942226 for ; Mon, 10 Jul 2017 21:32:13 +1000 Received: from d23av02.au.ibm.com (localhost [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id v6ABW5oq027221 for ; Mon, 10 Jul 2017 21:32:05 +1000 From: Anshuman Khandual Subject: [PATCH] mm/mremap: Document MREMAP_FIXED dependency on MREMAP_MAYMOVE Date: Mon, 10 Jul 2017 17:02:11 +0530 Message-Id: <20170710113211.31394-1-khandual@linux.vnet.ibm.com> Sender: owner-linux-mm@kvack.org List-ID: To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, mike.kravetz@oracle.com In the header file, just specify the dependency of MREMAP_FIXED on MREMAP_MAYMOVE and make it explicit for the user space. Signed-off-by: Anshuman Khandual --- include/uapi/linux/mman.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/mman.h b/include/uapi/linux/mman.h index ade4acd..8cae3f6 100644 --- a/include/uapi/linux/mman.h +++ b/include/uapi/linux/mman.h @@ -3,8 +3,10 @@ #include -#define MREMAP_MAYMOVE 1 -#define MREMAP_FIXED 2 +#define MREMAP_MAYMOVE 1 /* VMA can move after remap and resize */ +#define MREMAP_FIXED 2 /* VMA can remap at particular address */ + +/* NOTE: MREMAP_FIXED must be set with MREMAP_MAYMOVE, not alone */ #define OVERCOMMIT_GUESS 0 #define OVERCOMMIT_ALWAYS 1 -- 1.8.5.2 -- 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