Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751744AbdCCC5q (ORCPT ); Thu, 2 Mar 2017 21:57:46 -0500 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:48080 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751037AbdCCC5p (ORCPT ); Thu, 2 Mar 2017 21:57:45 -0500 X-Original-SENDERIP: 156.147.1.127 X-Original-MAILFROM: minchan@kernel.org X-Original-SENDERIP: 10.177.223.161 X-Original-MAILFROM: minchan@kernel.org Date: Fri, 3 Mar 2017 11:57:31 +0900 From: Minchan Kim To: Hillf Danton Cc: "'Andrew Morton'" , kernel-team@lge.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "'Johannes Weiner'" , "'Michal Hocko'" , "'Shaohua Li'" Subject: Re: [RFC 03/11] mm: remove SWAP_DIRTY in ttu Message-ID: <20170303025731.GC3503@bbox> References: <1488436765-32350-1-git-send-email-minchan@kernel.org> <1488436765-32350-4-git-send-email-minchan@kernel.org> <079901d29327$77698f60$663cae20$@alibaba-inc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <079901d29327$77698f60$663cae20$@alibaba-inc.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1116 Lines: 32 Hi Hillf, On Thu, Mar 02, 2017 at 03:34:45PM +0800, Hillf Danton wrote: > > On March 02, 2017 2:39 PM Minchan Kim wrote: > > @@ -1424,7 +1424,8 @@ static int try_to_unmap_one(struct page *page, struct vm_area_struct *vma, > > } else if (!PageSwapBacked(page)) { > > /* dirty MADV_FREE page */ > > Nit: enrich the comment please. I guess what you wanted is not my patch doing but one merged already so I just sent a small clean patch against of patch merged onto mmotm to make thig logic clear. You are already Cced in there so you can see it. Hope it well. If you want others, please tell me. I will do something to make it clear. Thanks for the review. > > set_pte_at(mm, address, pvmw.pte, pteval); > > - ret = SWAP_DIRTY; > > + SetPageSwapBacked(page); > > + ret = SWAP_FAIL; > > page_vma_mapped_walk_done(&pvmw); > > break; > > } > > -- > 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