blockdev: don't set S_DAX for misaligned partitions
authorJeff Moyer <jmoyer@redhat.com>
Fri, 14 Aug 2015 20:15:32 +0000 (16:15 -0400)
committerDan Williams <dan.j.williams@intel.com>
Wed, 16 Sep 2015 00:08:05 +0000 (20:08 -0400)
commitf0b2e563bc419df7c1b3d2f494574c25125f6aed
treea9fbfb63817c1bd49115e4a6b2175d617aeb41ff
parente94f5a2285fc94202a9efb2c687481f29b64132c
blockdev: don't set S_DAX for misaligned partitions

The dax code doesn't currently support misaligned partitions,
so disable O_DIRECT via dax until such time as that support
materializes.

Cc: <stable@vger.kernel.org>
Suggested-by: Boaz Harrosh <boaz@plexistor.com>
Signed-off-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/block_dev.c