Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752434AbZIHWWR (ORCPT ); Tue, 8 Sep 2009 18:22:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751922AbZIHWWQ (ORCPT ); Tue, 8 Sep 2009 18:22:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:12985 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751900AbZIHWWQ (ORCPT ); Tue, 8 Sep 2009 18:22:16 -0400 Message-ID: <4AA6D8D0.9050509@redhat.com> Date: Tue, 08 Sep 2009 18:21:04 -0400 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Thunderbird 2.0.0.17 (X11/20080915) MIME-Version: 1.0 To: Hugh Dickins CC: Andrew Morton , Mel Gorman , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Linus Torvalds , Nick Piggin , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 5/8] mm: follow_hugetlb_page flags References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1040 Lines: 25 Hugh Dickins wrote: > follow_hugetlb_page() shouldn't be guessing about the coredump case > either: pass the foll_flags down to it, instead of just the write bit. > > Remove that obscure huge_zeropage_ok() test. The decision is easy, > though unlike the non-huge case - here vm_ops->fault is always set. > But we know that a fault would serve up zeroes, unless there's > already a hugetlbfs pagecache page to back the range. > > (Alternatively, since hugetlb pages aren't swapped out under pressure, > you could save more dump space by arguing that a page not yet faulted > into this process cannot be relevant to the dump; but that would be > more surprising.) > > Signed-off-by: Hugh Dickins Acked-by: Rik van Riel -- All rights reversed. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/