From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f71.google.com (mail-wm0-f71.google.com [74.125.82.71]) by kanga.kvack.org (Postfix) with ESMTP id 721666B0038 for ; Mon, 12 Dec 2016 11:47:23 -0500 (EST) Received: by mail-wm0-f71.google.com with SMTP id w13so15380673wmw.0 for ; Mon, 12 Dec 2016 08:47:23 -0800 (PST) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id e29si29108898wmi.40.2016.12.12.08.47.22 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 12 Dec 2016 08:47:22 -0800 (PST) From: Jan Kara Subject: [PATCH 1/6] ext2: Return BH_New buffers for zeroed blocks Date: Mon, 12 Dec 2016 17:47:03 +0100 Message-Id: <20161212164708.23244-2-jack@suse.cz> In-Reply-To: <20161212164708.23244-1-jack@suse.cz> References: <20161212164708.23244-1-jack@suse.cz> Sender: owner-linux-mm@kvack.org List-ID: To: linux-fsdevel@vger.kernel.org Cc: Ross Zwisler , linux-mm@kvack.org, linux-ext4@vger.kernel.org, Johannes Weiner , Jan Kara So far we did not return BH_New buffers from ext2_get_blocks() when we allocated and zeroed-out a block for DAX inode to avoid racy zeroing in DAX code. This zeroing is gone these days so we can remove the workaround. Reviewed-by: Ross Zwisler Reviewed-by: Christoph Hellwig Signed-off-by: Jan Kara --- fs/ext2/inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 046b642f3585..e626fe892c01 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -754,9 +754,8 @@ static int ext2_get_blocks(struct inode *inode, mutex_unlock(&ei->truncate_mutex); goto cleanup; } - } else { - *new = true; } + *new = true; ext2_splice_branch(inode, iblock, partial, indirect_blks, count); mutex_unlock(&ei->truncate_mutex); -- 2.10.2 -- 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