copy address of proc_ns_ops into ns_common
[linux-2.6-block.git] / fs / proc / inode.c
index 43b703c6cd3b00320b4e2568b66f2329b2bd0134..a212996e0987cfe1d1858a9741f53df96cec9c88 100644 (file)
@@ -32,7 +32,6 @@ static void proc_evict_inode(struct inode *inode)
 {
        struct proc_dir_entry *de;
        struct ctl_table_header *head;
-       const struct proc_ns_operations *ns_ops;
        struct ns_common *ns;
 
        truncate_inode_pages_final(&inode->i_data);
@@ -51,10 +50,9 @@ static void proc_evict_inode(struct inode *inode)
                sysctl_head_put(head);
        }
        /* Release any associated namespace */
-       ns_ops = PROC_I(inode)->ns.ns_ops;
        ns = PROC_I(inode)->ns.ns;
-       if (ns_ops && ns)
-               ns_ops->put(ns);
+       if (ns && ns->ops)
+               ns->ops->put(ns);
 }
 
 static struct kmem_cache * proc_inode_cachep;