From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id EBDBE6B0069 for ; Tue, 18 Oct 2016 13:59:46 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id u84so226456362pfj.6 for ; Tue, 18 Oct 2016 10:59:46 -0700 (PDT) Received: from mga11.intel.com (mga11.intel.com. [192.55.52.93]) by mx.google.com with ESMTPS id u65si33364627pgc.179.2016.10.18.10.59.46 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 18 Oct 2016 10:59:46 -0700 (PDT) Date: Tue, 18 Oct 2016 11:59:44 -0600 From: Ross Zwisler Subject: Re: [PATCH 15/20] mm: Move part of wp_page_reuse() into the single call site Message-ID: <20161018175944.GB7796@linux.intel.com> References: <1474992504-20133-1-git-send-email-jack@suse.cz> <1474992504-20133-16-git-send-email-jack@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1474992504-20133-16-git-send-email-jack@suse.cz> Sender: owner-linux-mm@kvack.org List-ID: To: Jan Kara Cc: linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-nvdimm@lists.01.org, Dan Williams , Ross Zwisler , "Kirill A. Shutemov" On Tue, Sep 27, 2016 at 06:08:19PM +0200, Jan Kara wrote: > wp_page_reuse() handles write shared faults which is needed only in > wp_page_shared(). Move the handling only into that location to make > wp_page_reuse() simpler and avoid a strange situation when we sometimes > pass in locked page, sometimes unlocked etc. > > Signed-off-by: Jan Kara Reviewed-by: Ross Zwisler -- 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