diff options
author | Ming Lei <ming.lei@canonical.com> | 2015-05-06 12:26:25 +0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-05-20 09:06:13 -0600 |
commit | 9dcd13795342f51994fc23a4949d31c77919271c (patch) | |
tree | 76feccacb53b4be39deb74606c14dc50aa22a8be | |
parent | 06f0e9e68c0d81c7d822a405f6e35686a711c1fe (diff) | |
download | linux-9dcd13795342f51994fc23a4949d31c77919271c.tar.bz2 |
block: nbd: convert to blkdev_reread_part()
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Jarod Wilson <jarod@redhat.com>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r-- | drivers/block/nbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 83a7ba4a3eec..0e385d8e9b86 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -711,7 +711,7 @@ static int __nbd_ioctl(struct block_device *bdev, struct nbd_device *nbd, bdev->bd_inode->i_size = 0; set_capacity(nbd->disk, 0); if (max_part > 0) - ioctl_by_bdev(bdev, BLKRRPART, 0); + blkdev_reread_part(bdev); if (nbd->disconnect) /* user requested, ignore socket errors */ return 0; return nbd->harderror; |