Skip to content

Commit f01b16a

Browse files
rhvgoyaldjbw
authored andcommitted
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 3f666c5 commit f01b16a

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

drivers/dax/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ struct dax_device *fs_dax_get_by_bdev(struct block_device *bdev)
6161
{
6262
if (!blk_queue_dax(bdev->bd_queue))
6363
return NULL;
64-
return fs_dax_get_by_host(bdev->bd_disk->disk_name);
64+
return dax_get_by_host(bdev->bd_disk->disk_name);
6565
}
6666
EXPORT_SYMBOL_GPL(fs_dax_get_by_bdev);
6767
#endif

include/linux/dax.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,6 @@ static inline bool generic_fsdax_supported(struct dax_device *dax_dev,
129129
sectors);
130130
}
131131

132-
static inline struct dax_device *fs_dax_get_by_host(const char *host)
133-
{
134-
return dax_get_by_host(host);
135-
}
136-
137132
static inline void fs_put_dax(struct dax_device *dax_dev)
138133
{
139134
put_dax(dax_dev);
@@ -160,11 +155,6 @@ static inline bool generic_fsdax_supported(struct dax_device *dax_dev,
160155
return false;
161156
}
162157

163-
static inline struct dax_device *fs_dax_get_by_host(const char *host)
164-
{
165-
return NULL;
166-
}
167-
168158
static inline void fs_put_dax(struct dax_device *dax_dev)
169159
{
170160
}

0 commit comments

Comments
 (0)