diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-04 14:34:18 -0400 |
---|---|---|
committer | Alexey Dobriyan <adobriyan@gmail.com> | 2008-10-23 06:37:00 -0400 |
commit | d8ba7a363393f803c93c8cffabd6d0362618bc2a (patch) | |
tree | 331010c221eb9dfe396b2e6958a08f0fb695e117 /fs/proc | |
parent | ae048112c099b0f3adb57f7c0b3a49bc62244609 (diff) |
proc: move rest of /proc/locks to fs/locks.c
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/proc_misc.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index fcac25edaef7..fea7d658fff6 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -453,20 +453,6 @@ static const struct file_operations proc_interrupts_operations = { | |||
453 | .release = seq_release, | 453 | .release = seq_release, |
454 | }; | 454 | }; |
455 | 455 | ||
456 | #ifdef CONFIG_FILE_LOCKING | ||
457 | static int locks_open(struct inode *inode, struct file *filp) | ||
458 | { | ||
459 | return seq_open(filp, &locks_seq_operations); | ||
460 | } | ||
461 | |||
462 | static const struct file_operations proc_locks_operations = { | ||
463 | .open = locks_open, | ||
464 | .read = seq_read, | ||
465 | .llseek = seq_lseek, | ||
466 | .release = seq_release, | ||
467 | }; | ||
468 | #endif /* CONFIG_FILE_LOCKING */ | ||
469 | |||
470 | #ifdef CONFIG_PROC_PAGE_MONITOR | 456 | #ifdef CONFIG_PROC_PAGE_MONITOR |
471 | #define KPMSIZE sizeof(u64) | 457 | #define KPMSIZE sizeof(u64) |
472 | #define KPMMASK (KPMSIZE - 1) | 458 | #define KPMMASK (KPMSIZE - 1) |
@@ -605,9 +591,6 @@ void __init proc_misc_init(void) | |||
605 | proc_symlink("mounts", NULL, "self/mounts"); | 591 | proc_symlink("mounts", NULL, "self/mounts"); |
606 | 592 | ||
607 | /* And now for trickier ones */ | 593 | /* And now for trickier ones */ |
608 | #ifdef CONFIG_FILE_LOCKING | ||
609 | proc_create("locks", 0, NULL, &proc_locks_operations); | ||
610 | #endif | ||
611 | proc_create("devices", 0, NULL, &proc_devinfo_operations); | 594 | proc_create("devices", 0, NULL, &proc_devinfo_operations); |
612 | proc_create("cpuinfo", 0, NULL, &proc_cpuinfo_operations); | 595 | proc_create("cpuinfo", 0, NULL, &proc_cpuinfo_operations); |
613 | #ifdef CONFIG_BLOCK | 596 | #ifdef CONFIG_BLOCK |