Lines Matching refs:inode
28 static struct inode *anon_inode_inode __ro_after_init;
58 static struct inode *anon_inode_make_secure_inode( in anon_inode_make_secure_inode()
60 const struct inode *context_inode) in anon_inode_make_secure_inode()
62 struct inode *inode; in anon_inode_make_secure_inode() local
66 inode = alloc_anon_inode(anon_inode_mnt->mnt_sb); in anon_inode_make_secure_inode()
67 if (IS_ERR(inode)) in anon_inode_make_secure_inode()
68 return inode; in anon_inode_make_secure_inode()
69 inode->i_flags &= ~S_PRIVATE; in anon_inode_make_secure_inode()
70 error = security_inode_init_security_anon(inode, &qname, context_inode); in anon_inode_make_secure_inode()
72 iput(inode); in anon_inode_make_secure_inode()
75 return inode; in anon_inode_make_secure_inode()
81 const struct inode *context_inode, in __anon_inode_getfile()
84 struct inode *inode; in __anon_inode_getfile() local
91 inode = anon_inode_make_secure_inode(name, context_inode); in __anon_inode_getfile()
92 if (IS_ERR(inode)) { in __anon_inode_getfile()
93 file = ERR_CAST(inode); in __anon_inode_getfile()
97 inode = anon_inode_inode; in __anon_inode_getfile()
98 if (IS_ERR(inode)) { in __anon_inode_getfile()
106 ihold(inode); in __anon_inode_getfile()
109 file = alloc_file_pseudo(inode, anon_inode_mnt, name, in __anon_inode_getfile()
114 file->f_mapping = inode->i_mapping; in __anon_inode_getfile()
121 iput(inode); in __anon_inode_getfile()
213 const struct inode *context_inode) in anon_inode_create_getfile()
223 const struct inode *context_inode, in __anon_inode_getfd()
301 const struct inode *context_inode) in anon_inode_create_getfd()