From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by kanga.kvack.org (Postfix) with ESMTP id 65A976B0031 for ; Tue, 8 Jul 2014 05:48:27 -0400 (EDT) Received: by mail-la0-f51.google.com with SMTP id mc6so3705077lab.24 for ; Tue, 08 Jul 2014 02:48:26 -0700 (PDT) Received: from kirsi1.inet.fi (mta-out1.inet.fi. [62.71.2.198]) by mx.google.com with ESMTP id jd6si28215697lac.79.2014.07.08.02.48.25 for ; Tue, 08 Jul 2014 02:48:25 -0700 (PDT) Date: Tue, 8 Jul 2014 12:48:10 +0300 From: "Kirill A. Shutemov" Subject: Re: [PATCH v10 7/7] mm: Don't split THP page when syscall is called Message-ID: <20140708094810.GB3490@node.dhcp.inet.fi> References: <1404694438-10272-1-git-send-email-minchan@kernel.org> <1404694438-10272-8-git-send-email-minchan@kernel.org> <20140707111303.GC23150@node.dhcp.inet.fi> <20140708013038.GD6076@bbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140708013038.GD6076@bbox> Sender: owner-linux-mm@kvack.org List-ID: To: Minchan Kim Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Michael Kerrisk , Linux API , Hugh Dickins , Johannes Weiner , Rik van Riel , KOSAKI Motohiro , Mel Gorman , Jason Evans , Zhang Yanfei On Tue, Jul 08, 2014 at 10:30:38AM +0900, Minchan Kim wrote: > Actually, I did but found no problem except CONFIG_DEBUG_VM but rollback > after peeking [1]. > When I read the description in detail by your review, I think we can remove > BUG_ON(PageTransHuge(page)) in try_to_unmap and go with no split for lazyfree > page because they are not in swapcache any more so the assumption of [1] is > not valid. Will do it in next revision. No. try_to_unmap() knows nothing about PMDs, so page_check_address() will always return NULL for THP and you will not unmap anything. -- Kirill A. Shutemov -- 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