mm: create /sys/kernel/mm
authorNishanth Aravamudan <nacc@us.ibm.com>
Thu, 24 Jul 2008 04:27:39 +0000 (21:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:17 +0000 (10:47 -0700)
commitff7ea79cf7c3a481851bd4b2185fdeb6ce4afa29
treeea0438b98c268584c28c8f5f8c331cb12c2c44b9
parent5e9426abe209cf134adbbd62c5e73ef534eb73e9
mm: create /sys/kernel/mm

Add a kobject to create /sys/kernel/mm when sysfs is mounted.  The kobject
will exist regardless.  This will allow for the hugepage related sysfs
directories to exist under the mm "subsystem" directory.  Add an ABI file
appropriately.

[kosaki.motohiro@jp.fujitsu.com: fix build]
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/ABI/testing/sysfs-kernel-mm [new file with mode: 0644]
include/linux/kobject.h
mm/mm_init.c