xfs: add DAX truncate support
authorDave Chinner <dchinner@redhat.com>
Wed, 3 Jun 2015 23:19:10 +0000 (09:19 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Jun 2015 23:19:10 +0000 (09:19 +1000)
commit9969441f9f86a8a7de8c36514fa789e5f5d83145
treef041302d6b5bfd303dfcd065afc036f37be5f33c
parent4f69f578a87d39c20b1ff70005a125e4594c3de8
xfs: add DAX truncate support

When we truncate a DAX file, we need to call through the DAX page
truncation path rather than through block_truncate_page() so that
mappings and block zeroing are all handled correctly. Otherwise,
truncate does not need to change.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iops.c