ext2: Unmap metadata when zeroing blocks
authorJan Kara <jack@suse.cz>
Tue, 27 Sep 2016 14:35:45 +0000 (16:35 +0200)
committerJan Kara <jack@suse.cz>
Tue, 27 Sep 2016 16:16:55 +0000 (18:16 +0200)
commit225c5161b11838f34464cd1f421b232dbae3b6a0
treeed955d6e3106b0f15341ece6ae0bf82221f6bf16
parent5d3ddd84eaefffd23c028bce5610dac8726f71c1
ext2: Unmap metadata when zeroing blocks

When zeroing blocks for DAX allocations, we also have to unmap aliases
in the block device mappings. Otherwise writeback can overwrite zeros
with stale data from block device page cache.

Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/inode.c