summaryrefslogtreecommitdiffstats
path: root/include/linux/device-mapper.h
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2023-09-27 11:34:16 +0200
committerChristian Brauner <brauner@kernel.org>2023-10-28 13:29:18 +0200
commitc2fce61fb22e3235d29512558c4e93e184e2f68b (patch)
treea86d0dba5a43d709b88829bc24b534584ae34b3d /include/linux/device-mapper.h
parent631b001fd6bccb2438a6252dbb62d09cbba3350b (diff)
downloadlinux-c2fce61fb22e3235d29512558c4e93e184e2f68b.tar.gz
linux-c2fce61fb22e3235d29512558c4e93e184e2f68b.tar.bz2
linux-c2fce61fb22e3235d29512558c4e93e184e2f68b.zip
dm: Convert to bdev_open_by_dev()
Convert device mapper to use bdev_open_by_dev() and pass the handle around. CC: Alasdair Kergon <agk@redhat.com> CC: Mike Snitzer <snitzer@kernel.org> CC: dm-devel@redhat.com Acked-by: Christoph Hellwig <hch@lst.de> Acked-by: Christian Brauner <brauner@kernel.org> Signed-off-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20230927093442.25915-10-jack@suse.cz Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'include/linux/device-mapper.h')
-rw-r--r--include/linux/device-mapper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/device-mapper.h b/include/linux/device-mapper.h
index 69d0435c7ebb..772ab4d74d94 100644
--- a/include/linux/device-mapper.h
+++ b/include/linux/device-mapper.h
@@ -165,6 +165,7 @@ void dm_error(const char *message);
struct dm_dev {
struct block_device *bdev;
+ struct bdev_handle *bdev_handle;
struct dax_device *dax_dev;
blk_mode_t mode;
char name[16];