]> git.baikalelectronics.ru Git - kernel.git/commit
loop: split loop_control_ioctl
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Jun 2021 14:59:04 +0000 (16:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 30 Jun 2021 21:34:13 +0000 (15:34 -0600)
commitf9d107644aa4943b383986a8aa36125379eeaa81
tree5d074ed57ba75e595096916f3fec77e996eeb527
parent4157fe0b3d16ceca4316674a90c681405cdd23bf
loop: split loop_control_ioctl

Split loop_control_ioctl into a helper for each command.  This keeps the
code nicely separated for the upcoming locking changes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Link: https://lore.kernel.org/r/20210623145908.92973-6-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c