dax: change bdev_dax_supported() to support boolean returns
authorDave Jiang <dave.jiang@intel.com>
Wed, 30 May 2018 20:03:46 +0000 (13:03 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jul 2018 14:29:22 +0000 (16:29 +0200)
commit8214347c260b0839c007ec4882e180fca1b6a077
treea7e11700f3aac7acaff6181e67e4dc3be21a54c0
parenta19385766b4faa1e27aff8b677e2be6a0f03afe4
dax: change bdev_dax_supported() to support boolean returns

commit 80660f20252d6f76c9f203874ad7c7a4a8508cf8 upstream.

The function return values are confusing with the way the function is
named. We expect a true or false return value but it actually returns
0/-errno.  This makes the code very confusing. Changing the return values
to return a bool where if DAX is supported then return true and no DAX
support returns false.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dax/super.c
fs/ext2/super.c
fs/ext4/super.c
fs/xfs/xfs_ioctl.c
fs/xfs/xfs_super.c
include/linux/dax.h