Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6bee55f9 authored by Alexander Kuleshov's avatar Alexander Kuleshov Committed by Linus Torvalds
Browse files

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: default avatarAlexander Kuleshov <kuleshovmail@gmail.com>
Acked-by: default avatarNicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 695f0559
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -122,7 +122,7 @@ static int proc_getattr(struct vfsmount *mnt, struct dentry *dentry,
			struct kstat *stat)
			struct kstat *stat)
{
{
	struct inode *inode = dentry->d_inode;
	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)
	if (de && de->nlink)
		set_nlink(inode, de->nlink);
		set_nlink(inode, de->nlink);


+1 −1
Original line number Original line Diff line number Diff line
@@ -40,7 +40,7 @@ static void proc_evict_inode(struct inode *inode)
	put_pid(PROC_I(inode)->pid);
	put_pid(PROC_I(inode)->pid);


	/* Let go of any associated proc directory entry */
	/* Let go of any associated proc directory entry */
	de = PROC_I(inode)->pde;
	de = PDE(inode);
	if (de)
	if (de)
		pde_put(de);
		pde_put(de);
	head = PROC_I(inode)->sysctl;
	head = PROC_I(inode)->sysctl;