]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
xfs: add ->pfn_mkwrite support for DAX
authorDave Chinner <dchinner@redhat.com>
Tue, 3 Nov 2015 01:37:02 +0000 (12:37 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 3 Nov 2015 01:37:02 +0000 (12:37 +1100)
commit3af49285854df66260a263198cc15abb07b95287
tree36cf3d76bccae803a58886953be4709454a16838
parent01a155e6cf7db1a8ff2aa73162d7d9ec05ad298f
xfs: add ->pfn_mkwrite support for DAX

->pfn_mkwrite support is needed so that when a page with allocated
backing store takes a write fault we can check that the fault has
not raced with a truncate and is pointing to a region beyond the
current end of file.

This also allows us to update the timestamp on the inode, too, which
fixes a generic/080 failure.

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_file.c
fs/xfs/xfs_trace.h