]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: handle layout changes to pinned DAX mappings
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Sun, 29 Jul 2018 21:00:22 +0000 (17:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Jul 2018 21:00:22 +0000 (17:00 -0400)
commit79ee4cae4b22785ae53ee99c450f544c764d10db
treeba4489c4000ac7946de998f9f6a5cd2a3834d283
parent3a94e43e30100630b6ce05a941d1783f3366cd95
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