From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id 46D5B7CA2 for ; Thu, 4 Feb 2016 09:52:03 -0600 (CST) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay2.corp.sgi.com (Postfix) with ESMTP id 2864C304048 for ; Thu, 4 Feb 2016 07:52:03 -0800 (PST) Received: from mga11.intel.com ([192.55.52.93]) by cuda.sgi.com with ESMTP id FM16NqOHe6WJ81t5 for ; Thu, 04 Feb 2016 07:51:59 -0800 (PST) Date: Thu, 4 Feb 2016 08:50:39 -0700 From: Ross Zwisler Subject: Re: [PATCH] dax: dirty inode only if required Message-ID: <20160204155039.GA17818@linux.intel.com> References: <87k2mkr2ud.fsf@openvz.org> <20160204143344.GA6895@quack.suse.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20160204143344.GA6895@quack.suse.cz> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Jan Kara Cc: Dave Hansen , "J. Bruce Fields" , Linux MM , Andreas Dilger , "H. Peter Anvin" , Jeff Layton , "linux-nvdimm@lists.01.org" , X86 ML , Ingo Molnar , Matthew Wilcox , Ross Zwisler , linux-ext4 , XFS Developers , Alexander Viro , Thomas Gleixner , Theodore Ts'o , "linux-kernel@vger.kernel.org" , Dmitry Monakhov , Jan Kara , linux-fsdevel , Andrew Morton , Matthew Wilcox On Thu, Feb 04, 2016 at 03:33:44PM +0100, Jan Kara wrote: > On Thu 04-02-16 17:02:02, Dmitry Monakhov wrote: > > > > Signed-off-by: Dmitry Monakhov > > Makes sense. You can add: > > Reviewed-by: Jan Kara Looks good to me as well. Reviewed-by: Ross Zwisler > Honza > > --- > > fs/dax.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/fs/dax.c b/fs/dax.c > > index e0e9358..fc2e314 100644 > > --- a/fs/dax.c > > +++ b/fs/dax.c > > @@ -358,7 +358,8 @@ static int dax_radix_entry(struct address_space *mapping, pgoff_t index, > > void *entry; > > > > WARN_ON_ONCE(pmd_entry && !dirty); > > - __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); > > + if (dirty) > > + __mark_inode_dirty(mapping->host, I_DIRTY_PAGES); > > > > spin_lock_irq(&mapping->tree_lock); > > > > -- > > 1.8.3.1 > > > -- > Jan Kara > SUSE Labs, CR _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs