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)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 31 May 2018 15:58:34 +0000 (08:58 -0700)
commit80660f20252d6f76c9f203874ad7c7a4a8508cf8
tree6b34e3aff86d4455a595f37d0b2d5edc693a8bb4
parentba23cba9b3bdc967aabdc6ff1e3e9b11ce05bb4f
dax: change bdev_dax_supported() to support boolean returns

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>
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