diff options
| author | Chris Zankel <chris@zankel.net> | 2009-04-03 05:29:05 -0400 |
|---|---|---|
| committer | Chris Zankel <chris@zankel.net> | 2009-04-03 05:29:05 -0400 |
| commit | 65127d28e312bb6b38ce84a7bb71d762ef63ad4c (patch) | |
| tree | d5fdf52a2d0731f7fab0ce0ed394faac50b04fbc /init | |
| parent | b8bb76713ec50df2f11efee386e16f93d51e1076 (diff) | |
| parent | 8fe74cf053de7ad2124a894996f84fa890a81093 (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into merge
Diffstat (limited to 'init')
| -rw-r--r-- | init/Kconfig | 4 | ||||
| -rw-r--r-- | init/do_mounts.c | 1 | ||||
| -rw-r--r-- | init/initramfs.c | 7 |
3 files changed, 8 insertions, 4 deletions
diff --git a/init/Kconfig b/init/Kconfig index 14c483d2b7c9..1398a14b0191 100644 --- a/init/Kconfig +++ b/init/Kconfig | |||
| @@ -531,7 +531,7 @@ config CGROUP_DEVICE | |||
| 531 | 531 | ||
| 532 | config CPUSETS | 532 | config CPUSETS |
| 533 | bool "Cpuset support" | 533 | bool "Cpuset support" |
| 534 | depends on SMP && CGROUPS | 534 | depends on CGROUPS |
| 535 | help | 535 | help |
| 536 | This option will let you create and manage CPUSETs which | 536 | This option will let you create and manage CPUSETs which |
| 537 | allow dynamically partitioning a system into sets of CPUs and | 537 | allow dynamically partitioning a system into sets of CPUs and |
| @@ -597,6 +597,8 @@ config CGROUP_MEM_RES_CTLR_SWAP | |||
| 597 | is disabled by boot option, this will be automatically disabled and | 597 | is disabled by boot option, this will be automatically disabled and |
| 598 | there will be no overhead from this. Even when you set this config=y, | 598 | there will be no overhead from this. Even when you set this config=y, |
| 599 | if boot option "noswapaccount" is set, swap will not be accounted. | 599 | if boot option "noswapaccount" is set, swap will not be accounted. |
| 600 | Now, memory usage of swap_cgroup is 2 bytes per entry. If swap page | ||
| 601 | size is 4096bytes, 512k per 1Gbytes of swap. | ||
| 600 | 602 | ||
| 601 | endif # CGROUPS | 603 | endif # CGROUPS |
| 602 | 604 | ||
diff --git a/init/do_mounts.c b/init/do_mounts.c index 8d4ff5afc1d8..dd7ee5f203f3 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include <linux/fs.h> | 14 | #include <linux/fs.h> |
| 15 | #include <linux/initrd.h> | 15 | #include <linux/initrd.h> |
| 16 | #include <linux/async.h> | 16 | #include <linux/async.h> |
| 17 | #include <linux/fs_struct.h> | ||
| 17 | 18 | ||
| 18 | #include <linux/nfs_fs.h> | 19 | #include <linux/nfs_fs.h> |
| 19 | #include <linux/nfs_fs_sb.h> | 20 | #include <linux/nfs_fs_sb.h> |
diff --git a/init/initramfs.c b/init/initramfs.c index 619c1baf7701..80cd713f6cc5 100644 --- a/init/initramfs.c +++ b/init/initramfs.c | |||
| @@ -571,11 +571,11 @@ static int __init populate_rootfs(void) | |||
| 571 | if (initrd_start) { | 571 | if (initrd_start) { |
| 572 | #ifdef CONFIG_BLK_DEV_RAM | 572 | #ifdef CONFIG_BLK_DEV_RAM |
| 573 | int fd; | 573 | int fd; |
| 574 | printk(KERN_INFO "checking if image is initramfs..."); | 574 | printk(KERN_INFO "checking if image is initramfs...\n"); |
| 575 | err = unpack_to_rootfs((char *)initrd_start, | 575 | err = unpack_to_rootfs((char *)initrd_start, |
| 576 | initrd_end - initrd_start); | 576 | initrd_end - initrd_start); |
| 577 | if (!err) { | 577 | if (!err) { |
| 578 | printk(" it is\n"); | 578 | printk(KERN_INFO "rootfs image is initramfs; unpacking...\n"); |
| 579 | free_initrd(); | 579 | free_initrd(); |
| 580 | return 0; | 580 | return 0; |
| 581 | } else { | 581 | } else { |
| @@ -583,7 +583,8 @@ static int __init populate_rootfs(void) | |||
| 583 | unpack_to_rootfs(__initramfs_start, | 583 | unpack_to_rootfs(__initramfs_start, |
| 584 | __initramfs_end - __initramfs_start); | 584 | __initramfs_end - __initramfs_start); |
| 585 | } | 585 | } |
| 586 | printk("it isn't (%s); looks like an initrd\n", err); | 586 | printk(KERN_INFO "rootfs image is not initramfs (%s)" |
| 587 | "; looks like an initrd\n", err); | ||
| 587 | fd = sys_open("/initrd.image", O_WRONLY|O_CREAT, 0700); | 588 | fd = sys_open("/initrd.image", O_WRONLY|O_CREAT, 0700); |
| 588 | if (fd >= 0) { | 589 | if (fd >= 0) { |
| 589 | sys_write(fd, (char *)initrd_start, | 590 | sys_write(fd, (char *)initrd_start, |
