Skip to content

Commit dfa584f

Browse files
Christoph Hellwigdjbw
authored andcommitted
dm: use fs_dax_get_by_bdev instead of dax_get_by_host
There is no point in trying to finding the dax device if the DAX flag is not set on the queue as none of the users of the device mapper exported block devices could make use of the DAX capability. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Dan Williams <[email protected]> Reviewed-by: Mike Snitzer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 39b6389 commit dfa584f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ static int open_table_device(struct table_device *td, dev_t dev,
650650
}
651651

652652
td->dm_dev.bdev = bdev;
653-
td->dm_dev.dax_dev = dax_get_by_host(bdev->bd_disk->disk_name);
653+
td->dm_dev.dax_dev = fs_dax_get_by_bdev(bdev);
654654
return 0;
655655
}
656656

0 commit comments

Comments
 (0)