From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752720Ab3LPU2K (ORCPT ); Mon, 16 Dec 2013 15:28:10 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47897 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752582Ab3LPU2I (ORCPT ); Mon, 16 Dec 2013 15:28:08 -0500 Date: Mon, 16 Dec 2013 21:27:40 +0100 From: Andrea Arcangeli To: Oleg Nesterov Cc: Andrew Morton , Thomas Gleixner , Linus Torvalds , Dave Jones , Darren Hart , Linux Kernel Mailing List , Peter Zijlstra , Mel Gorman Subject: Re: [PATCH 0/2] mm: thp: get_huge_page_tail() cleanups Message-ID: <20131216202740.GF21218@redhat.com> References: <20131211170844.GA21700@redhat.com> <20131211175615.GA24546@redhat.com> <20131211191855.GA32485@redhat.com> <20131213151035.GE5408@redhat.com> <20131213162240.GA11762@redhat.com> <20131213173406.GG5408@redhat.com> <20131216201900.GA6616@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20131216201900.GA6616@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 16, 2013 at 09:19:00PM +0100, Oleg Nesterov wrote: > On top of > > mm-tail-page-refcounting-optimization-for-slab-and-hugetlbfs.patch > > should not be applied without the ack from Andrea. > > On 12/13, Andrea Arcangeli wrote: > > > > The above diff looks a straightforward cleanup you could submit it as > > a separate patch in a v2 series. > > OK, let me send this separately, because (afaics) put_compound_tail() > needs more thinking. > > See also 2/2. Again, I won't argue if you dislike this change even if > it is correct, so please review and ack/nack. To me compound_head() in > get_huge_page_tail() looks confusing, as if get_huge_page_tail() can > accept a !PageTail page. But perhaps this is only because I am new to > this code. compound_head in get_huge_page_tail was just a more readable version of page->first_page in __get_page_tail_foll. But page->first_page is faster so it's better. I reviewed all callers and there's no risk of the VM_BUG_ON triggering but I prefer it too. Both patches Acked. Acked-by: Andrea Arcangeli