dm: remove dm_get_dev_t
Open code dm_get_dev_t in the only remaining caller, and propagate the exact error code from lookup_bdev and early_lookup_bdev. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20230531125535.676098-20-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
49177377e9
commit
d4a28d7def
@@ -170,8 +170,6 @@ struct dm_dev {
|
||||
char name[16];
|
||||
};
|
||||
|
||||
dev_t dm_get_dev_t(const char *path);
|
||||
|
||||
/*
|
||||
* Constructors should call these functions to ensure destination devices
|
||||
* are opened/closed correctly.
|
||||
|
||||
Reference in New Issue
Block a user