Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e568df6b authored by Jan Kara's avatar Jan Kara Committed by Dan Williams
Browse files

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: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 7ce7d89f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);