diff options
author | Christoph Hellwig <hch@lst.de> | 2021-06-24 09:38:42 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-06-24 12:00:22 -0600 |
commit | d5870edfa3afc4608231267ea3b8e4beb3eab1ee (patch) | |
tree | 8e0f186a3b51277ab5c2c1e2a6a8de0763915669 /block/blk.h | |
parent | 60b6a7e6a0f4382cd689f9afdac816964fec2921 (diff) | |
download | linux-d5870edfa3afc4608231267ea3b8e4beb3eab1ee.tar.gz linux-d5870edfa3afc4608231267ea3b8e4beb3eab1ee.tar.bz2 linux-d5870edfa3afc4608231267ea3b8e4beb3eab1ee.zip |
block: move the disk events code to a separate file
Move the code for handling disk events from genhd.c into a new file
as it isn't very related to the rest of the file while at the same
time requiring lots of forward declarations.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://lore.kernel.org/r/20210624073843.251178-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/block/blk.h b/block/blk.h index d3fa47af3607..f8d726429906 100644 --- a/block/blk.h +++ b/block/blk.h @@ -360,4 +360,9 @@ int bio_add_hw_page(struct request_queue *q, struct bio *bio, struct request_queue *blk_alloc_queue(int node_id); +void disk_alloc_events(struct gendisk *disk); +void disk_add_events(struct gendisk *disk); +void disk_del_events(struct gendisk *disk); +void disk_release_events(struct gendisk *disk); + #endif /* BLK_INTERNAL_H */ |