Home
last modified time | relevance | path

Searched refs:child (Results 1 – 25 of 71) sorted by relevance

123

/fs/
Dpnode.c227 struct mount *child; in propagate_one() local
261 child = copy_tree(last_source, last_source->mnt.mnt_root, type); in propagate_one()
262 if (IS_ERR(child)) in propagate_one()
263 return PTR_ERR(child); in propagate_one()
265 mnt_set_mountpoint(m, mp, child); in propagate_one()
270 last_source = child; in propagate_one()
271 hlist_add_head(&child->mnt_hash, list); in propagate_one()
272 return count_mounts(m->mnt_ns, child); in propagate_one()
339 struct mount *child; in find_topper() local
344 child = list_first_entry(&mnt->mnt_mounts, struct mount, mnt_child); in find_topper()
[all …]
Dlibfs.c247 struct dentry *child = NULL; in find_next_child() local
256 child = dget_dlock(d); in find_next_child()
258 if (likely(child)) in find_next_child()
264 return child; in find_next_child()
272 struct dentry *victim = NULL, *child; in simple_recursive_removal() local
278 while ((child = find_next_child(this, victim)) == NULL) { in simple_recursive_removal()
309 this = child; in simple_recursive_removal()
408 struct dentry *child; in simple_empty() local
412 list_for_each_entry(child, &dentry->d_subdirs, d_child) { in simple_empty()
413 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in simple_empty()
[all …]
/fs/openpromfs/
Dinode.c184 struct device_node *dp, *child; in openpromfs_lookup() local
202 child = dp->child; in openpromfs_lookup()
203 while (child) { in openpromfs_lookup()
204 const char *node_name = kbasename(child->full_name); in openpromfs_lookup()
210 ent_data.node = child; in openpromfs_lookup()
211 ino = child->unique_id; in openpromfs_lookup()
214 child = child->sibling; in openpromfs_lookup()
270 struct device_node *child; in openpromfs_readdir() local
292 child = dp->child; in openpromfs_readdir()
293 while (i && child) { in openpromfs_readdir()
[all …]
/fs/ceph/
Dexport.c305 struct dentry *child, u64 ino) in __get_parent() argument
318 if (child) { in __get_parent()
319 req->r_inode = d_inode(child); in __get_parent()
320 ihold(d_inode(child)); in __get_parent()
350 static struct dentry *ceph_get_parent(struct dentry *child) in ceph_get_parent() argument
352 struct inode *inode = d_inode(child); in ceph_get_parent()
359 if (!d_is_dir(child)) { in ceph_get_parent()
389 dn = __get_parent(child->d_sb, child, 0); in ceph_get_parent()
393 child, ceph_vinop(inode), (long)PTR_ERR_OR_ZERO(dn)); in ceph_get_parent()
425 struct dentry *child) in __get_snap_name() argument
[all …]
/fs/kernfs/
Dmount.c137 static struct dentry *kernfs_get_parent_dentry(struct dentry *child) in kernfs_get_parent_dentry() argument
139 struct kernfs_node *kn = kernfs_dentry_node(child); in kernfs_get_parent_dentry()
141 return d_obtain_alias(kernfs_get_inode(child->d_sb, kn->parent)); in kernfs_get_parent_dentry()
173 static struct kernfs_node *find_next_ancestor(struct kernfs_node *child, in find_next_ancestor() argument
176 if (child == parent) { in find_next_ancestor()
181 while (child->parent != parent) { in find_next_ancestor()
182 if (!child->parent) in find_next_ancestor()
184 child = child->parent; in find_next_ancestor()
187 return child; in find_next_ancestor()
/fs/autofs/
Dexpire.c74 static struct dentry *positive_after(struct dentry *p, struct dentry *child) in positive_after() argument
76 if (child) in positive_after()
77 child = list_next_entry(child, d_child); in positive_after()
79 child = list_first_entry(&p->d_subdirs, struct dentry, d_child); in positive_after()
81 list_for_each_entry_from(child, &p->d_subdirs, d_child) { in positive_after()
82 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in positive_after()
83 if (simple_positive(child)) { in positive_after()
84 dget_dlock(child); in positive_after()
85 spin_unlock(&child->d_lock); in positive_after()
86 return child; in positive_after()
[all …]
/fs/proc/
Dproc_sysctl.c42 return head->ctl_table[0].child == sysctl_mount_point; in is_empty_dir()
47 dir->header.ctl_table[0].child = sysctl_mount_point; in set_empty_dir()
53 dir->header.ctl_table[0].child = NULL; in clear_empty_dir()
677 struct dentry *child, *dir = file->f_path.dentry; in proc_sys_fill_cache() local
687 child = d_lookup(dir, &qname); in proc_sys_fill_cache()
688 if (!child) { in proc_sys_fill_cache()
690 child = d_alloc_parallel(dir, &qname, &wq); in proc_sys_fill_cache()
691 if (IS_ERR(child)) in proc_sys_fill_cache()
693 if (d_in_lookup(child)) { in proc_sys_fill_cache()
697 d_lookup_done(child); in proc_sys_fill_cache()
[all …]
/fs/bfs/
Ddir.c24 static int bfs_add_entry(struct inode *dir, const struct qstr *child, int ino);
26 const struct qstr *child,
267 static int bfs_add_entry(struct inode *dir, const struct qstr *child, int ino) in bfs_add_entry() argument
269 const unsigned char *name = child->name; in bfs_add_entry()
270 int namelen = child->len; in bfs_add_entry()
322 const struct qstr *child, in bfs_find_entry() argument
328 const unsigned char *name = child->name; in bfs_find_entry()
329 int namelen = child->len; in bfs_find_entry()
/fs/nfs/blocklayout/
Ddev.c182 struct pnfs_block_dev *child = &dev->children[i]; in bl_map_concat() local
184 if (child->start > offset || in bl_map_concat()
185 child->start + child->len <= offset) in bl_map_concat()
188 child->map(child, offset - child->start, map); in bl_map_concat()
199 struct pnfs_block_dev *child; in bl_map_stripe() local
220 child = &dev->children[chunk_idx]; in bl_map_stripe()
221 child->map(child, disk_offset, map); in bl_map_stripe()
/fs/ocfs2/
Dexport.c131 static struct dentry *ocfs2_get_parent(struct dentry *child) in ocfs2_get_parent() argument
136 struct inode *dir = d_inode(child); in ocfs2_get_parent()
139 trace_ocfs2_get_parent(child, child->d_name.len, child->d_name.name, in ocfs2_get_parent()
/fs/notify/
Dfsnotify.c123 struct dentry *child; in __fsnotify_update_child_dentry_flags() local
129 list_for_each_entry(child, &alias->d_subdirs, d_child) { in __fsnotify_update_child_dentry_flags()
130 if (!child->d_inode) in __fsnotify_update_child_dentry_flags()
133 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in __fsnotify_update_child_dentry_flags()
135 child->d_flags |= DCACHE_FSNOTIFY_PARENT_WATCHED; in __fsnotify_update_child_dentry_flags()
137 child->d_flags &= ~DCACHE_FSNOTIFY_PARENT_WATCHED; in __fsnotify_update_child_dentry_flags()
138 spin_unlock(&child->d_lock); in __fsnotify_update_child_dentry_flags()
/fs/configfs/
Ddir.c645 struct dentry *child; in detach_groups() local
658 child = sd->s_dentry; in detach_groups()
660 inode_lock(d_inode(child)); in detach_groups()
663 d_inode(child)->i_flags |= S_DEAD; in detach_groups()
664 dont_mount(child); in detach_groups()
666 inode_unlock(d_inode(child)); in detach_groups()
668 d_delete(child); in detach_groups()
669 dput(child); in detach_groups()
693 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group() local
699 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group()
[all …]
/fs/gfs2/
Dexport.c86 struct dentry *child) in gfs2_get_name() argument
89 struct inode *inode = d_inode(child); in gfs2_get_name()
126 static struct dentry *gfs2_get_parent(struct dentry *child) in gfs2_get_parent() argument
128 return d_obtain_alias(gfs2_lookupi(d_inode(child), &gfs2_qdotdot, 1)); in gfs2_get_parent()
/fs/notify/fanotify/
Dfanotify.c488 struct inode *child, in fanotify_alloc_name_event() argument
495 unsigned int child_fh_len = fanotify_encode_fh_len(child); in fanotify_alloc_name_event()
515 info->file_fh_totlen = fanotify_encode_fh(ffh, child, child_fh_len, 0); in fanotify_alloc_name_event()
540 struct inode *child = NULL; in fanotify_alloc_event() local
551 child = id; in fanotify_alloc_event()
569 name_event = !!child; in fanotify_alloc_event()
593 } else if (name_event && (file_name || child)) { in fanotify_alloc_event()
594 event = fanotify_alloc_name_event(id, fsid, file_name, child, in fanotify_alloc_event()
/fs/efs/
Dnamei.c110 struct dentry *efs_get_parent(struct dentry *child) in efs_get_parent() argument
115 ino = efs_find_entry(d_inode(child), "..", 2); in efs_get_parent()
117 parent = d_obtain_alias(efs_iget(child->d_sb, ino)); in efs_get_parent()
/fs/exportfs/
Dexpfs.c24 static int get_name(const struct path *path, char *name, struct dentry *child);
28 char *name, struct dentry *child) in exportfs_get_name() argument
34 return nop->get_name(dir, name, child); in exportfs_get_name()
36 return get_name(&path, name, child); in exportfs_get_name()
277 static int get_name(const struct path *path, char *name, struct dentry *child) in get_name() argument
286 .dentry = child, in get_name()
/fs/tracefs/
Dinode.c214 struct dentry *child = this_parent; in set_gid() local
215 this_parent = child->d_parent; in set_gid()
217 spin_unlock(&child->d_lock); in set_gid()
222 next = child->d_child.next; in set_gid()
225 child = list_entry(next, struct dentry, d_child); in set_gid()
226 } while (unlikely(child->d_flags & DCACHE_DENTRY_KILLED)); in set_gid()
/fs/crypto/
Dpolicy.c590 int fscrypt_has_permitted_context(struct inode *parent, struct inode *child) in fscrypt_has_permitted_context() argument
596 if (!S_ISREG(child->i_mode) && !S_ISDIR(child->i_mode) && in fscrypt_has_permitted_context()
597 !S_ISLNK(child->i_mode)) in fscrypt_has_permitted_context()
605 if (!IS_ENCRYPTED(child)) in fscrypt_has_permitted_context()
626 err = fscrypt_get_encryption_info(child, true); in fscrypt_has_permitted_context()
631 err2 = fscrypt_get_policy(child, &child_policy); in fscrypt_has_permitted_context()
/fs/nfs/
Dsysctl.c39 .child = nfs_cb_sysctls,
48 .child = nfs_cb_sysctl_dir,
Dnfs4sysctl.c44 .child = nfs4_cb_sysctls,
53 .child = nfs4_cb_sysctl_dir,
/fs/btrfs/
Dexport.c134 struct dentry *btrfs_get_parent(struct dentry *child) in btrfs_get_parent() argument
136 struct inode *dir = d_inode(child); in btrfs_get_parent()
201 struct dentry *child) in btrfs_get_name() argument
203 struct inode *inode = d_inode(child); in btrfs_get_name()
/fs/jffs2/
Dsuper.c135 static struct dentry *jffs2_get_parent(struct dentry *child) in jffs2_get_parent() argument
140 BUG_ON(!d_is_dir(child)); in jffs2_get_parent()
142 f = JFFS2_INODE_INFO(d_inode(child)); in jffs2_get_parent()
149 return d_obtain_alias(jffs2_iget(child->d_sb, pino)); in jffs2_get_parent()
/fs/ubifs/
Ddebug.c1567 struct ubifs_znode *znode, *child; in dbg_walk_index() local
1588 child = zbr->znode; in dbg_walk_index()
1589 if (!child) { in dbg_walk_index()
1590 child = ubifs_load_znode(c, zbr, znode, 0); in dbg_walk_index()
1591 if (IS_ERR(child)) { in dbg_walk_index()
1592 err = PTR_ERR(child); in dbg_walk_index()
1597 znode = child; in dbg_walk_index()
1635 child = zbr->znode; in dbg_walk_index()
1636 if (!child) { in dbg_walk_index()
1637 child = ubifs_load_znode(c, zbr, znode, idx); in dbg_walk_index()
[all …]
Dtnc_misc.c175 struct ubifs_znode *child; in ubifs_tnc_postorder_first() local
177 child = ubifs_tnc_find_child(znode, 0); in ubifs_tnc_postorder_first()
178 if (!child) in ubifs_tnc_postorder_first()
180 znode = child; in ubifs_tnc_postorder_first()
/fs/affs/
Dnamei.c520 static struct dentry *affs_get_parent(struct dentry *child) in affs_get_parent() argument
525 bh = affs_bread(child->d_sb, d_inode(child)->i_ino); in affs_get_parent()
529 parent = affs_iget(child->d_sb, in affs_get_parent()
530 be32_to_cpu(AFFS_TAIL(child->d_sb, bh)->parent)); in affs_get_parent()

123