From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Rientjes Subject: Re: [patch 1/2] mm, doc: cleanup and clarify munmap behavior for hugetlb memory Date: Fri, 27 Mar 2015 18:37:46 -0700 (PDT) Message-ID: References: <20150327135847.GB10747@akamai.com> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: In-Reply-To: <20150327135847.GB10747@akamai.com> Sender: linux-doc-owner@vger.kernel.org To: Eric B Munson Cc: Andrew Morton , Jonathan Corbet , Davide Libenzi , Luiz Capitulino , Shuah Khan , Hugh Dickins , Andrea Arcangeli , Joern Engel , Jianguo Wu , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org List-Id: linux-api@vger.kernel.org On Fri, 27 Mar 2015, Eric B Munson wrote: > > munmap(2) of hugetlb memory requires a length that is hugepage aligned, > > otherwise it may fail. Add this to the documentation. > > > > This also cleans up the documentation and separates it into logical > > units: one part refers to MAP_HUGETLB and another part refers to > > requirements for shared memory segments. > > > > Signed-off-by: David Rientjes > > --- > > If this is the route we are going to take, this behavoir needs to be > called out prominently in the mmap/munmap man page. > Yeah, that was my next step, but before we get mtk involved I was trying to get this merged since man2/mmap.2 already has a .I Documentation/vm/hugetlbpage.txt for MAP_HUGETLB so the man page patch can simply reference this addition to the file as justification.