mm/vmstat.c: remove debug fs entries on failure of file creation and made extfrag_deb...
authorSasikantha babu <sasikanth.v19@gmail.com>
Tue, 29 May 2012 22:06:22 +0000 (15:06 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 May 2012 23:22:19 +0000 (16:22 -0700)
commitbde8bd8a1d5242589ddcaef8e017b48b207c4729
treee9fcbae5837689831b2a87a8ac8e9a789fb5e762
parent7edc8b0ac16cbaed7cb4ea4c6b95ce98d2997e84
mm/vmstat.c: remove debug fs entries on failure of file creation and made extfrag_debug_root dentry local

Remove debug fs files and directory on failure.  Since no one is using
"extfrag_debug_root" dentry outside of extfrag_debug_init(), make it
local to the function.

Signed-off-by: Sasikantha babu <sasikanth.v19@gmail.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmstat.c