* [PATCH] fs: proc: use the PDE to to get proc_dir_entry
@ 2014-12-27 13:52 Alexander Kuleshov
2015-01-06 16:28 ` Nicolas Dichtel
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Kuleshov @ 2014-12-27 13:52 UTC (permalink / raw)
To: Andrew Morton, Nicolas Dichtel, Alexey Dobriyan
Cc: linux-kernel, Alexander Kuleshov
Use the PDE to get proc_dir_entry instead of coding it directly.
Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
---
fs/proc/generic.c | 2 +-
fs/proc/inode.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/proc/generic.c b/fs/proc/generic.c
index 7fea132..de14e46 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);
diff --git a/fs/proc/inode.c b/fs/proc/inode.c
index 8420a2f..13a50a3 100644
--- a/fs/proc/inode.c
+++ b/fs/proc/inode.c
@@ -40,7 +40,7 @@ static void proc_evict_inode(struct inode *inode)
put_pid(PROC_I(inode)->pid);
/* Let go of any associated proc directory entry */
- de = PROC_I(inode)->pde;
+ de = PDE(inode);
if (de)
pde_put(de);
head = PROC_I(inode)->sysctl;
--
2.2.1.202.g98acd41.dirty
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fs: proc: use the PDE to to get proc_dir_entry
2014-12-27 13:52 [PATCH] fs: proc: use the PDE to to get proc_dir_entry Alexander Kuleshov
@ 2015-01-06 16:28 ` Nicolas Dichtel
0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Dichtel @ 2015-01-06 16:28 UTC (permalink / raw)
To: Alexander Kuleshov, Andrew Morton, Alexey Dobriyan; +Cc: linux-kernel
Le 27/12/2014 14:52, Alexander Kuleshov a écrit :
> Use the PDE 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>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-06 16:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-27 13:52 [PATCH] fs: proc: use the PDE to to get proc_dir_entry Alexander Kuleshov
2015-01-06 16:28 ` Nicolas Dichtel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.