Skip to content

Commit

Permalink
pmem: use fs_dax_get_by_bdev instead of dax_get_by_host
Browse files Browse the repository at this point in the history
The {fs,}dax_get_by_host helpers went away.
  • Loading branch information
chrboe authored and Philipp-Reisner committed Apr 7, 2022
1 parent ba10add commit 998a1fa
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drbd/drbd_dax_pmem.c
Expand Up @@ -56,14 +56,10 @@ static int map_superblock_for_dax(struct drbd_backing_dev *bdev, struct dax_devi
*/
int drbd_dax_open(struct drbd_backing_dev *bdev)
{
const char *disk_name = bdev->md_bdev->bd_disk->disk_name;
struct dax_device *dax_dev;
int err;

if (!blk_queue_dax(bdev->md_bdev->bd_disk->queue))
return -ENODEV;

dax_dev = dax_get_by_host(disk_name);
dax_dev = fs_dax_get_by_bdev(bdev->md_bdev);
if (!dax_dev)
return -ENODEV;

Expand Down

0 comments on commit 998a1fa

Please sign in to comment.