]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfs: add DAX truncate support
authorDave Chinner <dchinner@redhat.com>
Wed, 3 Jun 2015 23:19:10 +0000 (09:19 +1000)
committerDan Duval <dan.duval@oracle.com>
Wed, 12 Oct 2016 13:48:20 +0000 (09:48 -0400)
commitf4e4927eccd71458e64311104e16b897b6e91c34
tree970af72e10a9e7c9dad0c6bd481c2e6aab594e48
parent19c1ca00dc31bb5b793a03f7a4d068607c0396f6
xfs: add DAX truncate support

Orabug: 22913653

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>
(cherry picked from commit 9969441f9f86a8a7de8c36514fa789e5f5d83145)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/xfs/xfs_iops.c