Message ID | 1479980796-26161-2-git-send-email-jack@suse.cz (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Nov 24, 2016 at 10:46:31AM +0100, Jan Kara wrote: > 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: Christoph Hellwig <hch@lst.de> > Signed-off-by: Jan Kara <jack@suse.cz> Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index 046b642f3585..e626fe892c01 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c @@ -754,9 +754,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);