diff options
author | Jan Kara <jack@suse.cz> | 2016-08-10 16:42:53 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2016-12-26 20:29:24 -0800 |
commit | e568df6b84ff05a22467503afc11bee7a6ba0700 (patch) | |
tree | 516a8c7d3eb87bcd07d97e3582964403cdd0f010 /fs/ext2/inode.c | |
parent | 7ce7d89f48834cefece7804d38fc5d85382edf77 (diff) | |
download | linux-stable-e568df6b84ff05a22467503afc11bee7a6ba0700.tar.gz linux-stable-e568df6b84ff05a22467503afc11bee7a6ba0700.tar.bz2 linux-stable-e568df6b84ff05a22467503afc11bee7a6ba0700.zip |
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/inode.c')
-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); |