aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/swapfile.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 67051be7083a..bd1bb5920306 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -1426,11 +1426,7 @@ static const struct file_operations proc_swaps_operations = {
1426 1426
1427static int __init procswaps_init(void) 1427static int __init procswaps_init(void)
1428{ 1428{
1429 struct proc_dir_entry *entry; 1429 proc_create("swaps", 0, NULL, &proc_swaps_operations);
1430
1431 entry = create_proc_entry("swaps", 0, NULL);
1432 if (entry)
1433 entry->proc_fops = &proc_swaps_operations;
1434 return 0; 1430 return 0;
1435} 1431}
1436__initcall(procswaps_init); 1432__initcall(procswaps_init);