aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2016-08-10 10:42:53 -0400
committerDan Williams <dan.j.williams@intel.com>2016-12-26 23:29:24 -0500
commite568df6b84ff05a22467503afc11bee7a6ba0700 (patch)
tree516a8c7d3eb87bcd07d97e3582964403cdd0f010
parent7ce7d89f48834cefece7804d38fc5d85382edf77 (diff)
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 <ross.zwisler@linux.intel.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
-rw-r--r--fs/ext2/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c
index 0093ea2512a8..f073bfca694b 100644
--- a/fs/ext2/inode.c
+++ b/fs/ext2/inode.c
@@ -751,9 +751,8 @@ static int ext2_get_blocks(struct inode *inode,
751 mutex_unlock(&ei->truncate_mutex); 751 mutex_unlock(&ei->truncate_mutex);
752 goto cleanup; 752 goto cleanup;
753 } 753 }
754 } else {
755 *new = true;
756 } 754 }
755 *new = true;
757 756
758 ext2_splice_branch(inode, iblock, partial, indirect_blks, count); 757 ext2_splice_branch(inode, iblock, partial, indirect_blks, count);
759 mutex_unlock(&ei->truncate_mutex); 758 mutex_unlock(&ei->truncate_mutex);