ext4: handle layout changes to pinned DAX mappings
commit430657b6be896db57d974375cc499ca212c7f01d
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Sun, 29 Jul 2018 21:00:22 +0000 (29 17:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Jul 2018 21:00:22 +0000 (29 17:00 -0400)
treeba4489c4000ac7946de998f9f6a5cd2a3834d283
parentcdbf8897cb09b7baf2b8a7e78051a35a872b01d5
ext4: handle layout changes to pinned DAX mappings

Follow the lead of xfs_break_dax_layouts() and add synchronization between
operations in ext4 which remove blocks from an inode (hole punch, truncate
down, etc.) and pages which are pinned due to DAX DMA operations.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/inode.c
fs/ext4/truncate.h