From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id E0DB47CA2 for ; Thu, 4 Feb 2016 08:02:13 -0600 (CST) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay3.corp.sgi.com (Postfix) with ESMTP id 5F1E3AC004 for ; Thu, 4 Feb 2016 06:02:10 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com [209.85.217.180]) by cuda.sgi.com with ESMTP id TYBQ7SZRTPIYcEeR (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 04 Feb 2016 06:02:06 -0800 (PST) Received: by mail-lb0-f180.google.com with SMTP id bc4so31603748lbc.2 for ; Thu, 04 Feb 2016 06:02:06 -0800 (PST) From: Dmitry Monakhov MIME-Version: 1.0 Subject: [PATCH] dax: dirty inode only if required In-Reply-To: 1450899560-26708-5-git-send-email-ross.zwisler@linux.intel.com Date: Thu, 04 Feb 2016 17:02:02 +0300 Message-ID: <87k2mkr2ud.fsf@openvz.org> 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: Ross Zwisler Cc: X86 ML , Theodore Ts'o , Andrew Morton , "linux-nvdimm@lists.01.org" , Jan Kara , "linux-kernel@vger.kernel.org" , Dave Hansen , XFS Developers , "J. Bruce Fields" , Linux MM , Ingo Molnar , Andreas Dilger , Alexander Viro , "H. Peter Anvin" , linux-fsdevel , Matthew Wilcox , Jeff Layton , linux-ext4 , Thomas Gleixner , Matthew Wilcox Signed-off-by: Dmitry Monakhov --- 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 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs