diff options
author | Christoph Hellwig <[email protected]> | 2023-06-08 13:02:38 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2023-06-12 08:04:04 -0600 |
commit | 7ee34cbc291a28134b60683b246ba58b4b676ec3 (patch) | |
tree | 13d0bf7905b9348231a2d561a84271ee2c24e42e | |
parent | ae220766d87cd6799dbf918fea10613ae14c0654 (diff) |
block: rename blkdev_close to blkdev_release
Make the function name match the method name.
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r-- | block/fops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/fops.c b/block/fops.c index 6a3087b750a6..26af2b39c758 100644 --- a/block/fops.c +++ b/block/fops.c @@ -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, |