projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f8bcc8
)
ublk: remove the empty open and release block device operations
author
Christoph Hellwig
<hch@lst.de>
Thu, 21 Jul 2022 13:09:11 +0000
(15:09 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Thu, 21 Jul 2022 16:52:12 +0000
(10:52 -0600)
No need to define empty versions, they can just be left out.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link:
https://lore.kernel.org/r/20220721130916.1869719-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c
patch
|
blob
|
history
diff --git
a/drivers/block/ublk_drv.c
b/drivers/block/ublk_drv.c
index 07913b5bccd90244d01f87093042e1ccae28ce4b..deabcb23ae2af1bf5bbd4ecec5bb4b3ab5444235 100644
(file)
--- a/
drivers/block/ublk_drv.c
+++ b/
drivers/block/ublk_drv.c
@@
-208,19
+208,8
@@
static inline int ublk_queue_cmd_buf_size(struct ublk_device *ub, int q_id)
PAGE_SIZE);
}
-static int ublk_open(struct block_device *bdev, fmode_t mode)
-{
- return 0;
-}
-
-static void ublk_release(struct gendisk *disk, fmode_t mode)
-{
-}
-
static const struct block_device_operations ub_fops = {
.owner = THIS_MODULE,
- .open = ublk_open,
- .release = ublk_release,
};
#define UBLK_MAX_PIN_PAGES 32