xfs: disable map_sync for async flush
authorPankaj Gupta <pagupta@redhat.com>
Fri, 5 Jul 2019 14:03:28 +0000 (19:33 +0530)
committerDan Williams <dan.j.williams@intel.com>
Fri, 5 Jul 2019 22:19:10 +0000 (15:19 -0700)
commitb21fec414095d966789581c1466fb2f55de33bfe
tree86f35b782b92ed78f5063b8658bbac2966db0318
parente46bfc3f03d7894c0eb47c7d754c38bafe39e197
xfs: disable map_sync for async flush

Dont support 'MAP_SYNC' with non-DAX files and DAX files
with asynchronous dax_device. Virtio pmem provides
asynchronous host page cache flush mechanism. We don't
support 'MAP_SYNC' with virtio pmem and xfs.

Signed-off-by: Pankaj Gupta <pagupta@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/xfs/xfs_file.c