diff --git a/block/Kconfig b/block/Kconfig index e97934eececa..09acf1b39905 100644 --- a/block/Kconfig +++ b/block/Kconfig @@ -99,6 +99,12 @@ config BLK_DEV_THROTTLING See Documentation/cgroups/blkio-controller.txt for more information. +menu "Partition Types" + +source "block/partitions/Kconfig" + +endmenu + endif # BLOCK config BLOCK_COMPAT diff --git a/block/Makefile b/block/Makefile index 514c6e4f427a..3199c0cdef5a 100644 --- a/block/Makefile +++ b/block/Makefile @@ -5,7 +5,8 @@ obj-$(CONFIG_BLOCK) := elevator.o blk-core.o blk-tag.o blk-sysfs.o \ blk-flush.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 scsi_ioctl.o \ + partitions/ obj-$(CONFIG_BLK_DEV_BSG) += bsg.o obj-$(CONFIG_BLK_DEV_BSGLIB) += bsg-lib.o diff --git a/fs/partitions/Kconfig b/block/partitions/Kconfig similarity index 100% rename from fs/partitions/Kconfig rename to block/partitions/Kconfig diff --git a/fs/partitions/Makefile b/block/partitions/Makefile similarity index 100% rename from fs/partitions/Makefile rename to block/partitions/Makefile diff --git a/fs/partitions/acorn.c b/block/partitions/acorn.c similarity index 100% rename from fs/partitions/acorn.c rename to block/partitions/acorn.c diff --git a/fs/partitions/acorn.h b/block/partitions/acorn.h similarity index 100% rename from fs/partitions/acorn.h rename to block/partitions/acorn.h diff --git a/fs/partitions/amiga.c b/block/partitions/amiga.c similarity index 100% rename from fs/partitions/amiga.c rename to block/partitions/amiga.c diff --git a/fs/partitions/amiga.h b/block/partitions/amiga.h similarity index 100% rename from fs/partitions/amiga.h rename to block/partitions/amiga.h diff --git a/fs/partitions/atari.c b/block/partitions/atari.c similarity index 100% rename from fs/partitions/atari.c rename to block/partitions/atari.c diff --git a/fs/partitions/atari.h b/block/partitions/atari.h similarity index 100% rename from fs/partitions/atari.h rename to block/partitions/atari.h diff --git a/fs/partitions/check.c b/block/partitions/check.c similarity index 100% rename from fs/partitions/check.c rename to block/partitions/check.c diff --git a/fs/partitions/check.h b/block/partitions/check.h similarity index 100% rename from fs/partitions/check.h rename to block/partitions/check.h diff --git a/fs/partitions/efi.c b/block/partitions/efi.c similarity index 100% rename from fs/partitions/efi.c rename to block/partitions/efi.c diff --git a/fs/partitions/efi.h b/block/partitions/efi.h similarity index 100% rename from fs/partitions/efi.h rename to block/partitions/efi.h diff --git a/fs/partitions/ibm.c b/block/partitions/ibm.c similarity index 100% rename from fs/partitions/ibm.c rename to block/partitions/ibm.c diff --git a/fs/partitions/ibm.h b/block/partitions/ibm.h similarity index 100% rename from fs/partitions/ibm.h rename to block/partitions/ibm.h diff --git a/fs/partitions/karma.c b/block/partitions/karma.c similarity index 100% rename from fs/partitions/karma.c rename to block/partitions/karma.c diff --git a/fs/partitions/karma.h b/block/partitions/karma.h similarity index 100% rename from fs/partitions/karma.h rename to block/partitions/karma.h diff --git a/fs/partitions/ldm.c b/block/partitions/ldm.c similarity index 100% rename from fs/partitions/ldm.c rename to block/partitions/ldm.c diff --git a/fs/partitions/ldm.h b/block/partitions/ldm.h similarity index 100% rename from fs/partitions/ldm.h rename to block/partitions/ldm.h diff --git a/fs/partitions/mac.c b/block/partitions/mac.c similarity index 100% rename from fs/partitions/mac.c rename to block/partitions/mac.c diff --git a/fs/partitions/mac.h b/block/partitions/mac.h similarity index 100% rename from fs/partitions/mac.h rename to block/partitions/mac.h diff --git a/fs/partitions/msdos.c b/block/partitions/msdos.c similarity index 100% rename from fs/partitions/msdos.c rename to block/partitions/msdos.c diff --git a/fs/partitions/msdos.h b/block/partitions/msdos.h similarity index 100% rename from fs/partitions/msdos.h rename to block/partitions/msdos.h diff --git a/fs/partitions/osf.c b/block/partitions/osf.c similarity index 100% rename from fs/partitions/osf.c rename to block/partitions/osf.c diff --git a/fs/partitions/osf.h b/block/partitions/osf.h similarity index 100% rename from fs/partitions/osf.h rename to block/partitions/osf.h diff --git a/fs/partitions/sgi.c b/block/partitions/sgi.c similarity index 100% rename from fs/partitions/sgi.c rename to block/partitions/sgi.c diff --git a/fs/partitions/sgi.h b/block/partitions/sgi.h similarity index 100% rename from fs/partitions/sgi.h rename to block/partitions/sgi.h diff --git a/fs/partitions/sun.c b/block/partitions/sun.c similarity index 100% rename from fs/partitions/sun.c rename to block/partitions/sun.c diff --git a/fs/partitions/sun.h b/block/partitions/sun.h similarity index 100% rename from fs/partitions/sun.h rename to block/partitions/sun.h diff --git a/fs/partitions/sysv68.c b/block/partitions/sysv68.c similarity index 100% rename from fs/partitions/sysv68.c rename to block/partitions/sysv68.c diff --git a/fs/partitions/sysv68.h b/block/partitions/sysv68.h similarity index 100% rename from fs/partitions/sysv68.h rename to block/partitions/sysv68.h diff --git a/fs/partitions/ultrix.c b/block/partitions/ultrix.c similarity index 100% rename from fs/partitions/ultrix.c rename to block/partitions/ultrix.c diff --git a/fs/partitions/ultrix.h b/block/partitions/ultrix.h similarity index 100% rename from fs/partitions/ultrix.h rename to block/partitions/ultrix.h diff --git a/fs/Kconfig b/fs/Kconfig index 5f4c45d4aa10..30145d886bc2 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -266,14 +266,6 @@ source "fs/9p/Kconfig" endif # NETWORK_FILESYSTEMS -if BLOCK -menu "Partition Types" - -source "fs/partitions/Kconfig" - -endmenu -endif - source "fs/nls/Kconfig" source "fs/dlm/Kconfig" diff --git a/fs/Makefile b/fs/Makefile index d2c3353d5477..c36ebec298b8 100644 --- a/fs/Makefile +++ b/fs/Makefile @@ -52,7 +52,6 @@ obj-$(CONFIG_FHANDLE) += fhandle.o obj-y += quota/ obj-$(CONFIG_PROC_FS) += proc/ -obj-y += partitions/ obj-$(CONFIG_SYSFS) += sysfs/ obj-$(CONFIG_CONFIGFS_FS) += configfs/ obj-y += devpts/