]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commit
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)
committerIshan Mittal <imittal@nvidia.com>
Fri, 6 Jan 2017 10:15:06 +0000 (15:45 +0530)
commit46a740a19d8679d687919eae2216bcb6b395321c
tree7602040145d3a08898dd10ca6bd63a5c9dbcfafa
parent96de818272a4db37fe010df4c00cae34d8efc73b
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