]> www.infradead.org Git - users/jedix/linux-maple.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)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:25:11 +0000 (12:25 -0500)
commitef761b9318a1c59133b6ead44eedeaff73a2fede
tree2fc59a2c2d1c65a16a72377c4e807a2b8346bbaa
parent167cf3fa2e0c6d5ecdc0ae32984ff370342829d2
xfs: add ->pfn_mkwrite support for DAX

Orabug: 22913653

->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>
(cherry picked from commit 3af49285854df66260a263198cc15abb07b95287)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
fs/xfs/xfs_file.c
fs/xfs/xfs_trace.h