Commit 7ee34cbc authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

block: rename blkdev_close to blkdev_release

Make the function name match the method name.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Acked-by: default avatarChristian Brauner <brauner@kernel.org>
Link: https://lore.kernel.org/r/20230608110258.189493-11-hch@lst.deSigned-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ae220766
......@@ -500,7 +500,7 @@ static int blkdev_open(struct inode *inode, struct file *filp)
return 0;
}
static int blkdev_close(struct inode *inode, struct file *filp)
static int blkdev_release(struct inode *inode, struct file *filp)
{
struct block_device *bdev = filp->private_data;
......@@ -677,7 +677,7 @@ static long blkdev_fallocate(struct file *file, int mode, loff_t start,
const struct file_operations def_blk_fops = {
.open = blkdev_open,
.release = blkdev_close,
.release = blkdev_release,
.llseek = blkdev_llseek,
.read_iter = blkdev_read_iter,
.write_iter = blkdev_write_iter,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment