From: Jan Kara Date: Wed, 10 Aug 2016 14:42:53 +0000 (+0200) Subject: ext2: Return BH_New buffers for zeroed blocks X-Git-Tag: v4.14-rc1~1761^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e568df6b84ff05a22467503afc11bee7a6ba0700;p=platform%2Fkernel%2Flinux-rpi.git ext2: Return BH_New buffers for zeroed blocks 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 Signed-off-by: Dan Williams --- diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 0093ea2..f073bfc 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -751,9 +751,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);