diff options
author | Jan Kara | 2016-08-10 16:42:53 +0200 |
---|---|---|
committer | Dan Williams | 2016-12-26 20:29:24 -0800 |
commit | e568df6b84ff05a22467503afc11bee7a6ba0700 (patch) | |
tree | 516a8c7d3eb87bcd07d97e3582964403cdd0f010 /fs/ext2 | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (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>
Diffstat (limited to 'fs/ext2')
-rw-r--r-- | fs/ext2/inode.c | 3 |
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, 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); |