block: use DAX for partition table reads
authorDan Williams <dan.j.williams@intel.com>
Fri, 29 Jan 2016 04:25:31 +0000 (20:25 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sat, 30 Jan 2016 21:35:32 +0000 (13:35 -0800)
commitd1a5f2b4d8a125943dcb6b032fc7eaefc2c78296
treeafdd4251d10cbcf34b00bd4f33adb27996881cc6
parent9f4736fe7ca804aa79b5916221bb13dfc6221a0f
block: use DAX for partition table reads

Avoid populating pagecache when the block device is in DAX mode.
Otherwise these page cache entries collide with the fsync/msync
implementation and break data durability guarantees.

Cc: Jan Kara <jack@suse.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Tested-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
block/partition-generic.c
fs/dax.c
include/linux/dax.h