The patch titled Subject: fs: proc: use PDE() to get proc_dir_entry has been added to the -mm tree. Its filename is fs-proc-use-the-pde-to-to-get-proc_dir_entry.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/fs-proc-use-the-pde-to-to-get-proc_dir_entry.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/fs-proc-use-the-pde-to-to-get-proc_dir_entry.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Alexander Kuleshov <kuleshovmail@xxxxxxxxx> Subject: 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@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/proc/generic.c | 2 +- fs/proc/inode.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN fs/proc/generic.c~fs-proc-use-the-pde-to-to-get-proc_dir_entry fs/proc/generic.c --- a/fs/proc/generic.c~fs-proc-use-the-pde-to-to-get-proc_dir_entry +++ a/fs/proc/generic.c @@ -122,7 +122,7 @@ static int proc_getattr(struct vfsmount 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 -puN fs/proc/inode.c~fs-proc-use-the-pde-to-to-get-proc_dir_entry fs/proc/inode.c --- a/fs/proc/inode.c~fs-proc-use-the-pde-to-to-get-proc_dir_entry +++ a/fs/proc/inode.c @@ -40,7 +40,7 @@ static void proc_evict_inode(struct inod 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; _ Patches currently in -mm which might be from kuleshovmail@xxxxxxxxx are fs-proc-use-the-pde-to-to-get-proc_dir_entry.patch kexec-fix-a-typo-in-comment.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html