diff options
author | KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> | 2009-04-02 19:57:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-02 22:04:56 -0400 |
commit | 627991a20b3f4d504d20466ab405fe035cb1a20a (patch) | |
tree | ac1d7e0bc0881cf31c72ab1f830de904d52ef13e /mm/page_cgroup.c | |
parent | a3b2d692690aef228e493b1beaafe5364cab3237 (diff) |
memcg: remove redundant message at swapon
It's pointed out that swap_cgroup's message at swapon() is nonsense.
Because
* It can be calculated very easily if all necessary information is
written in Kconfig.
* It's not necessary to annoying people at every swapon().
In other view, now, memory usage per swp_entry is reduced to 2bytes from
8bytes(64bit) and I think it's reasonably small.
Reported-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_cgroup.c')
-rw-r--r-- | mm/page_cgroup.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/page_cgroup.c b/mm/page_cgroup.c index ebf81074bed4..791905c991df 100644 --- a/mm/page_cgroup.c +++ b/mm/page_cgroup.c | |||
@@ -426,13 +426,6 @@ int swap_cgroup_swapon(int type, unsigned long max_pages) | |||
426 | } | 426 | } |
427 | mutex_unlock(&swap_cgroup_mutex); | 427 | mutex_unlock(&swap_cgroup_mutex); |
428 | 428 | ||
429 | printk(KERN_INFO | ||
430 | "swap_cgroup: uses %ld bytes of vmalloc for pointer array space" | ||
431 | " and %ld bytes to hold mem_cgroup information per swap ents\n", | ||
432 | array_size, length * PAGE_SIZE); | ||
433 | printk(KERN_INFO | ||
434 | "swap_cgroup can be disabled by noswapaccount boot option.\n"); | ||
435 | |||
436 | return 0; | 429 | return 0; |
437 | nomem: | 430 | nomem: |
438 | printk(KERN_INFO "couldn't allocate enough memory for swap_cgroup.\n"); | 431 | printk(KERN_INFO "couldn't allocate enough memory for swap_cgroup.\n"); |