Lines Matching refs:parent
265 struct dentry *parent, void *data, void *link, in aafs_create() argument
274 AA_BUG(!parent); in aafs_create()
283 dir = d_inode(parent); in aafs_create()
286 dentry = lookup_one_len(name, parent, strlen(name)); in aafs_create()
326 struct dentry *parent, void *data, in aafs_create_file() argument
329 return aafs_create(name, mode, parent, data, NULL, fops, NULL); in aafs_create_file()
340 static struct dentry *aafs_create_dir(const char *name, struct dentry *parent) in aafs_create_dir() argument
342 return aafs_create(name, S_IFDIR | 0755, parent, NULL, NULL, NULL, in aafs_create_dir()
1587 for (depth = 0; profile; profile = rcu_access_pointer(profile->parent)) in profile_depth()
1688 int __aafs_profile_mkdir(struct aa_profile *profile, struct dentry *parent) in __aafs_profile_mkdir() argument
1697 if (!parent) { in __aafs_profile_mkdir()
1709 prof_child_dir(p) = parent = dent; in __aafs_profile_mkdir()
1727 dent = aafs_create_dir(profile->dirname, parent); in __aafs_profile_mkdir()
1807 struct aa_ns *ns, *parent; in ns_mkdir_op() local
1819 parent = aa_get_ns(dir->i_private); in ns_mkdir_op()
1820 AA_BUG(d_inode(ns_subns_dir(parent)) != dir); in ns_mkdir_op()
1827 mutex_lock_nested(&parent->lock, parent->level); in ns_mkdir_op()
1837 ns = __aa_find_or_create_ns(parent, READ_ONCE(dentry->d_name.name), in ns_mkdir_op()
1849 mutex_unlock(&parent->lock); in ns_mkdir_op()
1850 aa_put_ns(parent); in ns_mkdir_op()
1857 struct aa_ns *ns, *parent; in ns_rmdir_op() local
1869 parent = aa_get_ns(dir->i_private); in ns_rmdir_op()
1877 mutex_lock_nested(&parent->lock, parent->level); in ns_rmdir_op()
1878 ns = aa_get_ns(__aa_findn_ns(&parent->sub_ns, dentry->d_name.name, in ns_rmdir_op()
1890 mutex_unlock(&parent->lock); in ns_rmdir_op()
1893 aa_put_ns(parent); in ns_rmdir_op()
2026 int __aafs_ns_mkdir(struct aa_ns *ns, struct dentry *parent, const char *name, in __aafs_ns_mkdir() argument
2035 AA_BUG(!parent); in __aafs_ns_mkdir()
2043 dent = aafs_create_dir(name, parent); in __aafs_ns_mkdir()
2094 struct aa_ns *parent, *next; in __next_ns() local
2098 AA_BUG(ns != root && !mutex_is_locked(&ns->parent->lock)); in __next_ns()
2108 parent = ns->parent; in __next_ns()
2112 if (!list_entry_is_head(next, &parent->sub_ns, base.list)) { in __next_ns()
2116 ns = parent; in __next_ns()
2117 parent = parent->parent; in __next_ns()
2156 struct aa_profile *parent; in __next_profile() local
2167 parent = rcu_dereference_protected(p->parent, in __next_profile()
2169 while (parent) { in __next_profile()
2171 if (!list_entry_is_head(p, &parent->base.profiles, base.list)) in __next_profile()
2173 p = parent; in __next_profile()
2174 parent = rcu_dereference_protected(parent->parent, in __next_profile()
2175 mutex_is_locked(&parent->ns->lock)); in __next_profile()
2263 for (ns = profile->ns; ns && ns != root; ns = ns->parent) in p_stop()
2432 struct dentry *parent) in entry_create_file() argument
2438 parent, fs_file, in entry_create_file()
2456 struct dentry *parent) in entry_create_dir() argument
2462 dir = securityfs_create_dir(fs_dir->name, parent); in entry_create_dir()
2529 static int aa_mk_null_file(struct dentry *parent) in aa_mk_null_file() argument
2535 int error = simple_pin_fs(parent->d_sb->s_type, &mount, &count); in aa_mk_null_file()
2540 inode_lock(d_inode(parent)); in aa_mk_null_file()
2541 dentry = lookup_one_len(NULL_FILE_NAME, parent, strlen(NULL_FILE_NAME)); in aa_mk_null_file()
2546 inode = new_inode(parent->d_inode->i_sb); in aa_mk_null_file()
2566 inode_unlock(d_inode(parent)); in aa_mk_null_file()