Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 308835
b: refs/heads/master
c: bde8bd8
h: refs/heads/master
i:
  308833: 135700a
  308831: 30911fa
v: v3
  • Loading branch information
Sasikantha babu authored and Linus Torvalds committed May 29, 2012
1 parent 520feed commit 8d31076
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7edc8b0ac16cbaed7cb4ea4c6b95ce98d2997e84
refs/heads/master: bde8bd8a1d5242589ddcaef8e017b48b207c4729
10 changes: 7 additions & 3 deletions trunk/mm/vmstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,6 @@ module_init(setup_vmstat)
#if defined(CONFIG_DEBUG_FS) && defined(CONFIG_COMPACTION)
#include <linux/debugfs.h>

static struct dentry *extfrag_debug_root;

/*
* Return an index indicating how much of the available free memory is
Expand Down Expand Up @@ -1361,19 +1360,24 @@ static const struct file_operations extfrag_file_ops = {

static int __init extfrag_debug_init(void)
{
struct dentry *extfrag_debug_root;

extfrag_debug_root = debugfs_create_dir("extfrag", NULL);
if (!extfrag_debug_root)
return -ENOMEM;

if (!debugfs_create_file("unusable_index", 0444,
extfrag_debug_root, NULL, &unusable_file_ops))
return -ENOMEM;
goto fail;

if (!debugfs_create_file("extfrag_index", 0444,
extfrag_debug_root, NULL, &extfrag_file_ops))
return -ENOMEM;
goto fail;

return 0;
fail:
debugfs_remove_recursive(extfrag_debug_root);
return -ENOMEM;
}

module_init(extfrag_debug_init);
Expand Down

0 comments on commit 8d31076

Please sign in to comment.