Skip to content

Commit e568df6

Browse files
jankaradjbw
authored andcommitted
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jan Kara <[email protected]> Signed-off-by: Dan Williams <[email protected]>
1 parent 7ce7d89 commit e568df6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/ext2/inode.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,9 +751,8 @@ static int ext2_get_blocks(struct inode *inode,
751751
mutex_unlock(&ei->truncate_mutex);
752752
goto cleanup;
753753
}
754-
} else {
755-
*new = true;
756754
}
755+
*new = true;
757756

758757
ext2_splice_branch(inode, iblock, partial, indirect_blks, count);
759758
mutex_unlock(&ei->truncate_mutex);

0 commit comments

Comments
 (0)