Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.26-rc6 /kernel/lockdep_proc.c

Filename:/kernel/lockdep_proc.c
Lines Added:4
Lines Deleted:12
Also changed in: (Previous) 2.6.26-rc5  2.6.26-rc4  2.6.26-rc3  2.6.26-rc2  2.6.26-rc1  2.6.25-git20 
(Following) 2.6.26-rc7  2.6.26-rc8  2.6.26-rc9  2.6.26  2.6.26-git1  2.6.26-git2 

Location
[  2.6.26-rc6
  [  kernel
     o  lockdep_proc.c

Patch

diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c
index 8a135bd..dc5d296 100644
--- a/kernel/lockdep_proc.c
+++ b/kernel/lockdep_proc.c
@@ -660,20 +660,12 @@ static const struct file_operations proc_lock_stat_operations = {
 
 static int __init lockdep_proc_init(void)
 {
-   struct proc_dir_entry *entry;
-
-   entry = create_proc_entry("lockdep", S_IRUSR, NULL);
-   if (entry)
-      entry->proc_fops = &proc_lockdep_operations;
-
-   entry = create_proc_entry("lockdep_stats", S_IRUSR, NULL);
-   if (entry)
-      entry->proc_fops = &proc_lockdep_stats_operations;
+   proc_create("lockdep", S_IRUSR, NULL, &proc_lockdep_operations);
+   proc_create("lockdep_stats", S_IRUSR, NULL,
+          &proc_lockdep_stats_operations);
 
 #ifdef CONFIG_LOCK_STAT
-   entry = create_proc_entry("lock_stat", S_IRUSR, NULL);
-   if (entry)
-      entry->proc_fops = &proc_lock_stat_operations;
+   proc_create("lock_stat", S_IRUSR, NULL, &proc_lock_stat_operations);
 #endif
 
    return 0;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.