]> git.baikalelectronics.ru Git - kernel.git/commit
fs: allow per-device dax status checking for filesystems
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 May 2018 20:03:45 +0000 (13:03 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 31 May 2018 15:58:33 +0000 (08:58 -0700)
commitd4f0790bd933d72e69c0d9eb30f80afd2429246c
treeab508ad6c442fa52b4b59a27edb5084279dbb6d9
parent2b8cc46d0a2b6fc846709a3feea66ade010d6e87
fs: allow per-device dax status checking for filesystems

Change bdev_dax_supported so it takes a bdev parameter.  This enables
multi-device filesystems like xfs to check that a dax device can work for
the particular filesystem.  Once that's in place, actually fix all the
parts of XFS where we need to be able to distinguish between datadev and
rtdev.

This patch fixes the problem where we screw up the dax support checking
in xfs if the datadev and rtdev have different dax capabilities.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
[rez: Re-added __bdev_dax_supported() for !CONFIG_FS_DAX cases]
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
drivers/dax/super.c
fs/ext2/super.c
fs/ext4/super.c
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_iops.c
fs/xfs/xfs_super.c
include/linux/dax.h