Commit 51001b7d authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Jens Axboe

loop: Remove unused 'bdev' argument from loop_set_capacity

Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 30181faa
...@@ -1303,7 +1303,7 @@ loop_get_status64(struct loop_device *lo, struct loop_info64 __user *arg) { ...@@ -1303,7 +1303,7 @@ loop_get_status64(struct loop_device *lo, struct loop_info64 __user *arg) {
return err; return err;
} }
static int loop_set_capacity(struct loop_device *lo, struct block_device *bdev) static int loop_set_capacity(struct loop_device *lo)
{ {
if (unlikely(lo->lo_state != Lo_bound)) if (unlikely(lo->lo_state != Lo_bound))
return -ENXIO; return -ENXIO;
...@@ -1366,7 +1366,7 @@ static int lo_ioctl(struct block_device *bdev, fmode_t mode, ...@@ -1366,7 +1366,7 @@ static int lo_ioctl(struct block_device *bdev, fmode_t mode,
case LOOP_SET_CAPACITY: case LOOP_SET_CAPACITY:
err = -EPERM; err = -EPERM;
if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN)) if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN))
err = loop_set_capacity(lo, bdev); err = loop_set_capacity(lo);
break; break;
case LOOP_SET_DIRECT_IO: case LOOP_SET_DIRECT_IO:
err = -EPERM; err = -EPERM;
......
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