ext2: Fix block zeroing in ext2_get_blocks() for DAX
authorJan Kara <jack@suse.cz>
Mon, 16 May 2016 15:17:04 +0000 (17:17 +0200)
committerVishal Verma <vishal.l.verma@intel.com>
Tue, 17 May 2016 06:41:24 +0000 (00:41 -0600)
commit9b6cd5f76d60b563d75e55e432e03ed134761432
tree27415537e52ba2cfad0561fb16dca945efcfab36
parent02fbd139759feb1f331cebd858523b5d774082e6
ext2: Fix block zeroing in ext2_get_blocks() for DAX

When zeroing allocated blocks for DAX, we accidentally zeroed only the
first allocated block instead of all of them. So far this problem is
hidden by the fact that page faults always need only a single block and
DAX write code zeroes blocks again. But the zeroing in DAX code is racy
and needs to be removed so fix the zeroing in ext2 to zero all allocated
blocks.

Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
fs/ext2/inode.c
This page took 0.025041 seconds and 5 git commands to generate.