diff options
author | Alexander Kuleshov <kuleshovmail@gmail.com> | 2015-02-13 00:01:03 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-13 03:54:12 +0100 |
commit | 6bee55f94f971ccf87c8c95c10fa1047ade0f122 (patch) | |
tree | 49d17716fbec009664aac95d8e77651f407568c3 /fs/proc/generic.c | |
parent | fs/proc/task_mmu.c: add user-space support for resetting mm->hiwater_rss (pea... (diff) | |
download | linux-6bee55f94f971ccf87c8c95c10fa1047ade0f122.tar.xz linux-6bee55f94f971ccf87c8c95c10fa1047ade0f122.zip |
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>
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r-- | fs/proc/generic.c | 2 |
1 files changed, 1 insertions, 1 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, struct kstat *stat) { struct inode *inode = dentry->d_inode; - struct proc_dir_entry *de = PROC_I(inode)->pde; + struct proc_dir_entry *de = PDE(inode); if (de && de->nlink) set_nlink(inode, de->nlink); |