summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-01-26 23:30:05 -0800
committerDan Williams <dan.j.williams@intel.com>2017-04-20 11:57:52 -0700
commitd8f07aee3f2fd959878bf614d4e984900018eb9e (patch)
treec9931d6bed75fdf3516b1d079cae841e9e97e2fe /fs
parent7a2765f6e82063f348ebce78c28eceff741689d4 (diff)
downloadlinux-0-day-d8f07aee3f2fd959878bf614d4e984900018eb9e.tar.gz
linux-0-day-d8f07aee3f2fd959878bf614d4e984900018eb9e.tar.xz
block: kill bdev_dax_capable()
This is leftover dead code that has since been replaced by bdev_dax_supported(). Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/block_dev.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c
index 2eca00ec43706..7f40ea2f0875f 100644
--- a/fs/block_dev.c
+++ b/fs/block_dev.c
@@ -807,30 +807,6 @@ int bdev_dax_supported(struct super_block *sb, int blocksize)
}
EXPORT_SYMBOL_GPL(bdev_dax_supported);
-/**
- * bdev_dax_capable() - Return if the raw device is capable for dax
- * @bdev: The device for raw block device access
- */
-bool bdev_dax_capable(struct block_device *bdev)
-{
- struct blk_dax_ctl dax = {
- .size = PAGE_SIZE,
- };
-
- if (!IS_ENABLED(CONFIG_FS_DAX))
- return false;
-
- dax.sector = 0;
- if (bdev_direct_access(bdev, &dax) < 0)
- return false;
-
- dax.sector = bdev->bd_part->nr_sects - (PAGE_SIZE / 512);
- if (bdev_direct_access(bdev, &dax) < 0)
- return false;
-
- return true;
-}
-
/*
* pseudo-fs
*/