]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/proc_fs.h
[NET]: Fix race when opening a proc file while a network namespace is exiting.
[linux-2.6-omap-h63xx.git] / include / linux / proc_fs.h
index 59646705f151078eef43bcd80987043e714b3234..20741f668f7bebbba1cd018a07bab5810ae93428 100644 (file)
@@ -270,10 +270,7 @@ static inline struct net *PDE_NET(struct proc_dir_entry *pde)
        return pde->parent->data;
 }
 
-static inline struct net *PROC_NET(const struct inode *inode)
-{
-       return PDE_NET(PDE(inode));
-}
+struct net *get_proc_net(const struct inode *inode);
 
 struct proc_maps_private {
        struct pid *pid;