Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1578368

[PATCHv5 1/2] loop: Remove unused 'bdev' argument from loop_set_capacity

From Hannes Reinecke <hare@suse.de>
Newsgroups linux.kernel
Subject [PATCHv5 1/2] loop: Remove unused 'bdev' argument from loop_set_capacity
Date 2017-02-10 11:40 +0100
Message-ID <t9gMp-2dz-3@gated-at.bofh.it> (permalink)
References <t9f3Z-140-45@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
---
 drivers/block/loop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index f347285..8dae865 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -1298,7 +1298,7 @@ static int loop_clr_fd(struct loop_device *lo)
 	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))
 		return -ENXIO;
@@ -1361,7 +1361,7 @@ static int lo_ioctl(struct block_device *bdev, fmode_t mode,
 	case LOOP_SET_CAPACITY:
 		err = -EPERM;
 		if ((mode & FMODE_WRITE) || capable(CAP_SYS_ADMIN))
-			err = loop_set_capacity(lo, bdev);
+			err = loop_set_capacity(lo);
 		break;
 	case LOOP_SET_DIRECT_IO:
 		err = -EPERM;
-- 
1.8.5.6

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCHv5 0/2] loop: enable different logical blocksizes Hannes Reinecke <hare@suse.de> - 2017-02-10 09:50 +0100
  [PATCHv5 2/2] loop: support 4k physical blocksize Hannes Reinecke <hare@suse.de> - 2017-02-10 09:50 +0100
  [PATCHv5 1/2] loop: Remove unused 'bdev' argument from loop_set_capacity Hannes Reinecke <hare@suse.de> - 2017-02-10 11:40 +0100

csiph-web