block: cleanup blkdev_ioctl
authorChristoph Hellwig <hch@lst.de>
Thu, 15 Oct 2015 12:10:47 +0000 (14:10 +0200)
committerJens Axboe <axboe@fb.com>
Wed, 21 Oct 2015 20:46:55 +0000 (14:46 -0600)
commitd8e4bb8103df02a2c509868732dc93fb66110a12
tree7113c59e274bf476dace424c3e1fab69bab3e634
parentef658fc2a6809b42dd7002229fd174a9a1645707
block: cleanup blkdev_ioctl

Split out helpers for all non-trivial ioctls to make this function simpler,
and also start passing around a pointer version of the argument, as that's
what most ioctl handlers actually need.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/ioctl.c