aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kuleshov <kuleshovmail@gmail.com>2015-02-12 18:01:03 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-12 21:54:12 -0500
commit6bee55f94f971ccf87c8c95c10fa1047ade0f122 (patch)
tree49d17716fbec009664aac95d8e77651f407568c3
parent695f055936938c674473ea071ca7359a863551e7 (diff)
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>
-rw-r--r--fs/proc/generic.c2
-rw-r--r--fs/proc/inode.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 7fea13229f33..de14e46fd807 100644
--- a/fs/proc/generic.c
+++ b/fs/proc/generic.c
@@ -122,7 +122,7 @@ static int proc_getattr(struct vfsmount *mnt, struct dentry *dentry,
122 struct kstat *stat) 122 struct kstat *stat)
123{ 123{
124 struct inode *inode = dentry->d_inode; 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 if (de && de->nlink) 126 if (de && de->nlink)
127 set_nlink(inode, de->nlink); 127 set_nlink(inode, de->nlink);
128 128
diff --git a/fs/proc/inode.c b/fs/proc/inode.c
index 8420a2f80811..13a50a32652d 100644
--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
@@ -40,7 +40,7 @@ static void proc_evict_inode(struct inode *inode)
40 put_pid(PROC_I(inode)->pid); 40 put_pid(PROC_I(inode)->pid);
41 41
42 /* Let go of any associated proc directory entry */ 42 /* Let go of any associated proc directory entry */
43 de = PROC_I(inode)->pde; 43 de = PDE(inode);
44 if (de) 44 if (de)
45 pde_put(de); 45 pde_put(de);
46 head = PROC_I(inode)->sysctl; 46 head = PROC_I(inode)->sysctl;