mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
block/bdev: Annotate the blk_holder_ops callback functions
The four callback functions in blk_holder_ops all release the bd_holder_lock. Annotate these functions accordingly. Reviewed-by: Hannes Reinecke <hare@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://patch.msgid.link/be51cf81110f691ebd5868ac2f15ceb847805bc8.1780682325.git.bvanassche@acm.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
08d912bc44
commit
3033c86fa1
|
|
@ -1746,22 +1746,26 @@ void blkdev_show(struct seq_file *seqf, off_t offset);
|
|||
#endif
|
||||
|
||||
struct blk_holder_ops {
|
||||
void (*mark_dead)(struct block_device *bdev, bool surprise);
|
||||
void (*mark_dead)(struct block_device *bdev, bool surprise)
|
||||
__releases(&bdev->bd_holder_lock);
|
||||
|
||||
/*
|
||||
* Sync the file system mounted on the block device.
|
||||
*/
|
||||
void (*sync)(struct block_device *bdev);
|
||||
void (*sync)(struct block_device *bdev)
|
||||
__releases(&bdev->bd_holder_lock);
|
||||
|
||||
/*
|
||||
* Freeze the file system mounted on the block device.
|
||||
*/
|
||||
int (*freeze)(struct block_device *bdev);
|
||||
int (*freeze)(struct block_device *bdev)
|
||||
__releases(&bdev->bd_holder_lock);
|
||||
|
||||
/*
|
||||
* Thaw the file system mounted on the block device.
|
||||
*/
|
||||
int (*thaw)(struct block_device *bdev);
|
||||
int (*thaw)(struct block_device *bdev)
|
||||
__releases(&bdev->bd_holder_lock);
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user