block: move all core partition code from fs/partitions/check.c to block/
From: Kay Sievers <[email protected]>
Subject: block: move all core partition code from fs/partitions/check.c to block/
Only the actual partition parsing code should be left in fs/partitions now, and the driver core/sysfs code for partitions has moved to block/partition.c.
Signed-off-by Kay Sievers <[email protected]>
--- block/Makefile | 3 block/genhd.c | 42 ++++++ block/partition.c | 290 +++++++++++++++++++++++++++++++++++++++++++ fs/partitions/check.c | 332 -------------------------------------------------- 4 files changed, 334 insertions(+), 333 deletions(-)
block/Makefile +2 -1
@@ -5,7 +5,8 @@ obj-$(CONFIG_BLOCK) := elevator.o blk-core.o blk-tag.o blk-sysfs.o \ blk-barrier.o blk-settings.o blk-ioc.o blk-map.o \ blk-exec.o blk-merge.o blk-softirq.o blk-timeout.o \ - blk-iopoll.o blk-lib.o ioctl.o genhd.o scsi_ioctl.o + blk-iopoll.o blk-lib.o ioctl.o genhd.o partition.o \ + scsi_ioctl.o obj-$(CONFIG_BLK_DEV_BSG) += bsg.o obj-$(CONFIG_BLK_CGROUP) += blk-cgroup.o
block/genhd.c +42 -0
54 lines not on this page · raw message
block/partition.c new file +290 -0
290 lines not on this page · raw message
fs/partitions/check.c +0 -332
363 lines not on this page · raw message