OSDN Git Service

ext4: allow DAX writeback for hole punch
authorRoss Zwisler <ross.zwisler@linux.intel.com>
Thu, 22 Sep 2016 15:49:38 +0000 (11:49 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2016 10:26:56 +0000 (12:26 +0200)
commit2db2fd9538e40e905d174c2d1067c99b58a98d7a
treeb33f15655c056902d9dd481eddf57a7ad689c744
parent6f6c12ce00e8bb3f36b12ebb83b004f3cf4ec695
ext4: allow DAX writeback for hole punch

commit cca32b7eeb4ea24fa6596650e06279ad9130af98 upstream.

Currently when doing a DAX hole punch with ext4 we fail to do a writeback.
This is because the logic around filemap_write_and_wait_range() in
ext4_punch_hole() only looks for dirty page cache pages in the radix tree,
not for dirty DAX exceptional entries.

Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/inode.c