ext4: unmap metadata when zeroing blocks
authorJan Kara <jack@suse.cz>
Fri, 30 Sep 2016 06:02:29 +0000 (02:02 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 30 Sep 2016 06:02:29 +0000 (02:02 -0400)
commit9b623df614576680cadeaa4d7e0b5884de8f7c17
tree06860f5d4dac697ceb441b2ad0305610470d387a
parent51e8137b82622d8ea22e993d613db568f11c1523
ext4: 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>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/inode.c