summaryrefslogtreecommitdiffstats
path: root/block/blk.h
diff options
context:
space:
mode:
authorChristian Brauner <brauner@kernel.org>2024-01-23 14:26:49 +0100
committerChristian Brauner <brauner@kernel.org>2024-02-25 12:05:28 +0100
commitab838b3fd9a442a62f36ea7eeb93e77259f787ce (patch)
tree961c6004ba64d9575d47201d83d33ff1bc97b39a /block/blk.h
parentblock: don't rely on BLK_OPEN_RESTRICT_WRITES when yielding write access (diff)
downloadlinux-ab838b3fd9a442a62f36ea7eeb93e77259f787ce.tar.xz
linux-ab838b3fd9a442a62f36ea7eeb93e77259f787ce.zip
block: remove bdev_handle completely
We just need to use the holder to indicate whether a block device open was exclusive or not. We did use to do that before but had to give that up once we switched to struct bdev_handle. Before struct bdev_handle we only stashed stuff in file->private_data if this was an exclusive open but after struct bdev_handle we always set file->private_data to a struct bdev_handle and so we had to use bdev_handle->mode or bdev_handle->holder. Now that we don't use struct bdev_handle anymore we can revert back to the old behavior. Link: https://lore.kernel.org/r/20240123-vfs-bdev-file-v2-32-adbd023e19cc@kernel.org Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/block/blk.h b/block/blk.h
index 7ca24814f3a0..f02b25f22e8b 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -25,11 +25,6 @@ struct blk_flush_queue {
struct request *flush_rq;
};
-struct bdev_handle {
- void *holder;
- blk_mode_t mode;
-};
-
bool is_flush_rq(struct request *req);
struct blk_flush_queue *blk_alloc_flush_queue(int node, int cmd_size,