Commit 6bee55f94f971ccf87c8c95c10fa1047ade0f122

Authored by Alexander Kuleshov
Committed by Linus Torvalds
1 parent 695f055936

fs: proc: use PDE() to get proc_dir_entry

Use the PDE() helper to get proc_dir_entry instead of coding it directly.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -122,7 +122,7 @@
122 122 struct kstat *stat)
123 123 {
124 124 struct inode *inode = dentry->d_inode;
125   - struct proc_dir_entry *de = PROC_I(inode)->pde;
  125 + struct proc_dir_entry *de = PDE(inode);
126 126 if (de && de->nlink)
127 127 set_nlink(inode, de->nlink);
128 128  
... ... @@ -40,7 +40,7 @@
40 40 put_pid(PROC_I(inode)->pid);
41 41  
42 42 /* Let go of any associated proc directory entry */
43   - de = PROC_I(inode)->pde;
  43 + de = PDE(inode);
44 44 if (de)
45 45 pde_put(de);
46 46 head = PROC_I(inode)->sysctl;