Home
last modified time | relevance | path

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

123

/fs/
Dpnode.c223 struct mount *m, *child; in propagate_mnt() local
240 child = copy_tree(source, source->mnt.mnt_root, type); in propagate_mnt()
241 if (IS_ERR(child)) { in propagate_mnt()
242 ret = PTR_ERR(child); in propagate_mnt()
248 mnt_set_mountpoint(m, dest_dentry, child); in propagate_mnt()
249 list_add_tail(&child->mnt_hash, tree_list); in propagate_mnt()
255 list_add_tail(&child->mnt_hash, &tmp_list); in propagate_mnt()
258 prev_src_mnt = child; in propagate_mnt()
263 child = list_first_entry(&tmp_list, struct mount, mnt_hash); in propagate_mnt()
264 umount_tree(child, 0, &umount_list); in propagate_mnt()
[all …]
Dlibfs.c288 struct dentry *child; in simple_empty() local
292 list_for_each_entry(child, &dentry->d_subdirs, d_u.d_child) { in simple_empty()
293 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in simple_empty()
294 if (simple_positive(child)) { in simple_empty()
295 spin_unlock(&child->d_lock); in simple_empty()
298 spin_unlock(&child->d_lock); in simple_empty()
/fs/openpromfs/
Dinode.c182 struct device_node *dp, *child; in openpromfs_lookup() local
200 child = dp->child; in openpromfs_lookup()
201 while (child) { in openpromfs_lookup()
202 int n = strlen(child->path_component_name); in openpromfs_lookup()
205 !strncmp(child->path_component_name, name, len)) { in openpromfs_lookup()
207 ent_data.node = child; in openpromfs_lookup()
208 ino = child->unique_id; in openpromfs_lookup()
211 child = child->sibling; in openpromfs_lookup()
268 struct device_node *child; in openpromfs_readdir() local
297 child = dp->child; in openpromfs_readdir()
[all …]
/fs/proc/
Dproc_devtree.c187 struct device_node *child; in proc_device_tree_add_node() local
191 for (child = NULL; (child = of_get_next_child(np, child));) { in proc_device_tree_add_node()
193 p = strrchr(child->full_name, '/'); in proc_device_tree_add_node()
195 p = child->full_name; in proc_device_tree_add_node()
205 proc_device_tree_add_node(child, ent); in proc_device_tree_add_node()
207 of_node_put(child); in proc_device_tree_add_node()
Dproc_sysctl.c581 struct dentry *child, *dir = filp->f_path.dentry; in proc_sys_fill_cache() local
591 child = d_lookup(dir, &qname); in proc_sys_fill_cache()
592 if (!child) { in proc_sys_fill_cache()
593 child = d_alloc(dir, &qname); in proc_sys_fill_cache()
594 if (child) { in proc_sys_fill_cache()
597 dput(child); in proc_sys_fill_cache()
600 d_set_d_op(child, &proc_sys_dentry_operations); in proc_sys_fill_cache()
601 d_add(child, inode); in proc_sys_fill_cache()
607 inode = child->d_inode; in proc_sys_fill_cache()
610 dput(child); in proc_sys_fill_cache()
[all …]
/fs/notify/
Dfsnotify.c67 struct dentry *child; in __fsnotify_update_child_dentry_flags() local
73 list_for_each_entry(child, &alias->d_subdirs, d_u.d_child) { in __fsnotify_update_child_dentry_flags()
74 if (!child->d_inode) in __fsnotify_update_child_dentry_flags()
77 spin_lock_nested(&child->d_lock, DENTRY_D_LOCK_NESTED); in __fsnotify_update_child_dentry_flags()
79 child->d_flags |= DCACHE_FSNOTIFY_PARENT_WATCHED; in __fsnotify_update_child_dentry_flags()
81 child->d_flags &= ~DCACHE_FSNOTIFY_PARENT_WATCHED; in __fsnotify_update_child_dentry_flags()
82 spin_unlock(&child->d_lock); in __fsnotify_update_child_dentry_flags()
/fs/debugfs/
Dinode.c530 struct dentry *child, *next, *parent; in debugfs_remove_recursive() local
542 list_for_each_entry_safe(child, next, &parent->d_subdirs, d_u.d_child) { in debugfs_remove_recursive()
543 if (!debugfs_positive(child)) in debugfs_remove_recursive()
547 if (!list_empty(&child->d_subdirs)) { in debugfs_remove_recursive()
549 parent = child; in debugfs_remove_recursive()
553 if (!__debugfs_remove(child, parent)) in debugfs_remove_recursive()
558 child = parent; in debugfs_remove_recursive()
562 if (child != dentry) { in debugfs_remove_recursive()
563 next = list_entry(child->d_u.d_child.next, struct dentry, in debugfs_remove_recursive()
568 if (!__debugfs_remove(child, parent)) in debugfs_remove_recursive()
/fs/ocfs2/
Dexport.c145 static struct dentry *ocfs2_get_parent(struct dentry *child) in ocfs2_get_parent() argument
150 struct inode *dir = child->d_inode; in ocfs2_get_parent()
152 trace_ocfs2_get_parent(child, child->d_name.len, child->d_name.name, in ocfs2_get_parent()
/fs/ceph/
Dsnap.c391 struct ceph_snap_realm *child; in rebuild_snap_realms() local
396 list_for_each_entry(child, &realm->children, child_item) in rebuild_snap_realms()
397 rebuild_snap_realms(child); in rebuild_snap_realms()
581 struct ceph_snap_realm *child; in queue_realm_cap_snaps() local
602 list_for_each_entry(child, &realm->children, child_item) { in queue_realm_cap_snaps()
604 realm, realm->ino, child, child->ino); in queue_realm_cap_snaps()
605 list_del_init(&child->dirty_item); in queue_realm_cap_snaps()
606 list_add(&child->dirty_item, &realm->dirty_item); in queue_realm_cap_snaps()
894 struct ceph_snap_realm *child = in ceph_handle_snap() local
897 if (!child) in ceph_handle_snap()
[all …]
/fs/configfs/
Ddir.c618 struct dentry *child; in detach_groups() local
631 child = sd->s_dentry; in detach_groups()
633 mutex_lock(&child->d_inode->i_mutex); in detach_groups()
636 child->d_inode->i_flags |= S_DEAD; in detach_groups()
637 dont_mount(child); in detach_groups()
639 mutex_unlock(&child->d_inode->i_mutex); in detach_groups()
641 d_delete(child); in detach_groups()
642 dput(child); in detach_groups()
666 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group() local
675 child = d_alloc(parent, &name); in create_default_group()
[all …]
/fs/coda/
Dcache.c92 struct list_head *child; in coda_flag_children() local
96 list_for_each(child, &parent->d_subdirs) in coda_flag_children()
98 de = list_entry(child, struct dentry, d_u.d_child); in coda_flag_children()
/fs/exportfs/
Dexpfs.c23 struct dentry *child);
27 char *name, struct dentry *child) in exportfs_get_name() argument
32 return nop->get_name(dir, name, child); in exportfs_get_name()
34 return get_name(mnt, dir, name, child); in exportfs_get_name()
252 char *name, struct dentry *child) in get_name() argument
279 buffer.ino = child->d_inode->i_ino; in get_name()
/fs/gfs2/
Dexport.c93 struct dentry *child) in gfs2_get_name() argument
96 struct inode *inode = child->d_inode; in gfs2_get_name()
132 static struct dentry *gfs2_get_parent(struct dentry *child) in gfs2_get_parent() argument
134 return d_obtain_alias(gfs2_lookupi(child->d_inode, &gfs2_qdotdot, 1)); in gfs2_get_parent()
/fs/efs/
Dnamei.c105 struct dentry *efs_get_parent(struct dentry *child) in efs_get_parent() argument
110 ino = efs_find_entry(child->d_inode, "..", 2); in efs_get_parent()
112 parent = d_obtain_alias(efs_iget(child->d_inode->i_sb, ino)); in efs_get_parent()
/fs/nfs/
Dsysctl.c64 .child = nfs_cb_sysctls,
73 .child = nfs_cb_sysctl_dir,
/fs/jffs2/
Dsuper.c147 static struct dentry *jffs2_get_parent(struct dentry *child) in jffs2_get_parent() argument
152 BUG_ON(!S_ISDIR(child->d_inode->i_mode)); in jffs2_get_parent()
154 f = JFFS2_INODE_INFO(child->d_inode); in jffs2_get_parent()
161 return d_obtain_alias(jffs2_iget(child->d_inode->i_sb, pino)); in jffs2_get_parent()
/fs/btrfs/
Dexport.c166 static struct dentry *btrfs_get_parent(struct dentry *child) in btrfs_get_parent() argument
168 struct inode *dir = child->d_inode; in btrfs_get_parent()
234 struct dentry *child) in btrfs_get_name() argument
236 struct inode *inode = child->d_inode; in btrfs_get_name()
/fs/nfsd/
Dnfs4recover.c317 purge_old(struct dentry *parent, struct dentry *child) in purge_old() argument
321 if (nfs4_has_reclaimed_state(child->d_name.name, false)) in purge_old()
324 status = vfs_rmdir(parent->d_inode, child); in purge_old()
327 child->d_name.name); in purge_old()
353 load_recdir(struct dentry *parent, struct dentry *child) in load_recdir() argument
355 if (child->d_name.len != HEXDIR_LEN - 1) { in load_recdir()
357 child->d_name.name); in load_recdir()
361 nfs4_client_to_reclaim(child->d_name.name); in load_recdir()
/fs/ubifs/
Ddebug.c1648 struct ubifs_znode *znode, *child; in dbg_walk_index() local
1669 child = zbr->znode; in dbg_walk_index()
1670 if (!child) { in dbg_walk_index()
1671 child = ubifs_load_znode(c, zbr, znode, 0); in dbg_walk_index()
1672 if (IS_ERR(child)) { in dbg_walk_index()
1673 err = PTR_ERR(child); in dbg_walk_index()
1676 zbr->znode = child; in dbg_walk_index()
1679 znode = child; in dbg_walk_index()
1719 child = zbr->znode; in dbg_walk_index()
1720 if (!child) { in dbg_walk_index()
[all …]
Dtnc_misc.c185 struct ubifs_znode *child; in ubifs_tnc_postorder_first() local
187 child = ubifs_tnc_find_child(znode, 0); in ubifs_tnc_postorder_first()
188 if (!child) in ubifs_tnc_postorder_first()
190 znode = child; in ubifs_tnc_postorder_first()
/fs/squashfs/
Dexport.c111 static struct dentry *squashfs_get_parent(struct dentry *child) in squashfs_get_parent() argument
113 struct inode *inode = child->d_inode; in squashfs_get_parent()
/fs/isofs/
Dexport.c43 static struct dentry *isofs_export_get_parent(struct dentry *child) in isofs_export_get_parent() argument
47 struct inode *child_inode = child->d_inode; in isofs_export_get_parent()
/fs/ext2/
Ddir.c370 struct qstr *child, struct page ** res_page) in ext2_find_entry() argument
372 const char *name = child->name; in ext2_find_entry()
373 int namelen = child->len; in ext2_find_entry()
446 ino_t ext2_inode_by_name(struct inode *dir, struct qstr *child) in ext2_inode_by_name() argument
452 de = ext2_find_entry (dir, child, &page); in ext2_inode_by_name()
Dnamei.c80 struct dentry *ext2_get_parent(struct dentry *child) in ext2_get_parent() argument
83 unsigned long ino = ext2_inode_by_name(child->d_inode, &dotdot); in ext2_get_parent()
86 return d_obtain_alias(ext2_iget(child->d_inode->i_sb, ino)); in ext2_get_parent()
/fs/ext3/
Dnamei.h8 extern struct dentry *ext3_get_parent(struct dentry *child);

123