]> git.baikalelectronics.ru Git - kernel.git/commit
block: refactor blkpg_ioctl
authorChristoph Hellwig <hch@lst.de>
Tue, 14 Apr 2020 07:28:53 +0000 (09:28 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 20 Apr 2020 17:32:59 +0000 (11:32 -0600)
commit957dbbcc2add92ac2220d2756aaf88fb788d957b
treefec1b378659b83f4e755e8d0788dde9dfaa81f0d
parent04a0c0d148bfe395ed73489fc3d041f508efbc6b
block: refactor blkpg_ioctl

Split each sub-command out into a separate helper, and move those helpers
to block/partitions/core.c instead of having a lot of partition
manipulation logic open coded in block/ioctl.c.

Signed-off-by: Christoph Hellwig <hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk.h
block/ioctl.c
block/partitions/core.c