From mboxrd@z Thu Jan 1 00:00:00 1970 From: Minchan Kim Subject: Re: [PATCH v9] mm: support madvise(MADV_FREE) Date: Thu, 3 Jul 2014 10:03:19 +0900 Message-ID: <20140703010318.GA2939@bbox> References: <1404174975-22019-1-git-send-email-minchan@kernel.org> <20140701145058.GA2084@node.dhcp.inet.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Return-path: Content-Disposition: inline In-Reply-To: <20140701145058.GA2084-nhfs4B5ZimeFUdmeq17FyvUpdFzICT1y@public.gmane.org> Sender: linux-api-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "Kirill A. Shutemov" Cc: Andrew Morton , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-mm-Bw31MaZKKs3YtjvyW6yDsg@public.gmane.org, Michael Kerrisk , Linux API , Hugh Dickins , Johannes Weiner , Rik van Riel , KOSAKI Motohiro , Mel Gorman , Jason Evans , Zhang Yanfei List-Id: linux-api@vger.kernel.org Hello, On Tue, Jul 01, 2014 at 05:50:58PM +0300, Kirill A. Shutemov wrote: > On Tue, Jul 01, 2014 at 09:36:15AM +0900, Minchan Kim wrote: > > + do { > > + /* > > + * XXX: We can optimize with supporting Hugepage free > > + * if the range covers. > > + */ > > + next = pmd_addr_end(addr, end); > > + if (pmd_trans_huge(*pmd)) > > + split_huge_page_pmd(vma, addr, pmd); > > Could you implement proper THP support before upstreaming the feature? > It shouldn't be a big deal. Okay, Hope to review. Thanks for the feedback! -- Kind regards, Minchan Kim