summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorVivek Goyal <vgoyal@redhat.com>2020-01-06 19:11:17 +0100
committerDan Williams <dan.j.williams@intel.com>2020-01-16 18:52:27 +0100
commitf01b16a85bfae2e6b4f32de0a1f37ac4050dc316 (patch)
treef78afdd595cee529a9f2b9ac30fd4c92ab17980c /include
parentdax: Pass dax_dev instead of bdev to dax_writeback_mapping_range() (diff)
downloadlinux-f01b16a85bfae2e6b4f32de0a1f37ac4050dc316.tar.xz
linux-f01b16a85bfae2e6b4f32de0a1f37ac4050dc316.zip
dax: Get rid of fs_dax_get_by_host() helper
Looks like nobody is using fs_dax_get_by_host() except fs_dax_get_by_bdev() and it can easily use dax_get_by_host() instead. IIUC, fs_dax_get_by_host() was only introduced so that one could compile with CONFIG_FS_DAX=n and CONFIG_DAX=m. fs_dax_get_by_bdev() achieves the same purpose and hence it looks like fs_dax_get_by_host() is not needed anymore. Signed-off-by: Vivek Goyal <vgoyal@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20200106181117.GA16248@redhat.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dax.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/dax.h b/include/linux/dax.h
index d5932e47c597..328c2dbb4409 100644
--- a/include/linux/dax.h
+++ b/include/linux/dax.h
@@ -129,11 +129,6 @@ static inline bool generic_fsdax_supported(struct dax_device *dax_dev,
sectors);
}
-static inline struct dax_device *fs_dax_get_by_host(const char *host)
-{
- return dax_get_by_host(host);
-}
-
static inline void fs_put_dax(struct dax_device *dax_dev)
{
put_dax(dax_dev);
@@ -160,11 +155,6 @@ static inline bool generic_fsdax_supported(struct dax_device *dax_dev,
return false;
}
-static inline struct dax_device *fs_dax_get_by_host(const char *host)
-{
- return NULL;
-}
-
static inline void fs_put_dax(struct dax_device *dax_dev)
{
}