Home
last modified time | relevance | path

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

12

/fs/nfsd/
Dnfs4recover.c203 struct dentry_list *child; in nfsd4_build_dentrylist() local
210 child = kmalloc(sizeof(*child), GFP_KERNEL); in nfsd4_build_dentrylist()
211 if (child == NULL) in nfsd4_build_dentrylist()
213 child->dentry = dentry; in nfsd4_build_dentrylist()
214 list_add(&child->list, dentries); in nfsd4_build_dentrylist()
227 struct dentry_list *child; in nfsd4_list_rec_dir() local
247 child = list_entry(dentries->next, struct dentry_list, list); in nfsd4_list_rec_dir()
248 status = f(dir, child->dentry); in nfsd4_list_rec_dir()
251 list_del(&child->list); in nfsd4_list_rec_dir()
252 dput(child->dentry); in nfsd4_list_rec_dir()
[all …]
/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/
Dpnode.c230 struct vfsmount *m, *child; in propagate_mnt() local
247 if (!(child = copy_tree(source, source->mnt_root, type))) { in propagate_mnt()
254 mnt_set_mountpoint(m, dest_dentry, child); in propagate_mnt()
255 list_add_tail(&child->mnt_hash, tree_list); in propagate_mnt()
261 list_add_tail(&child->mnt_hash, &tmp_list); in propagate_mnt()
264 prev_src_mnt = child; in propagate_mnt()
269 child = list_first_entry(&tmp_list, struct vfsmount, mnt_hash); in propagate_mnt()
270 umount_tree(child, 0, &umount_list); in propagate_mnt()
296 struct vfsmount *m, *child; in propagate_mount_busy() local
313 child = __lookup_mnt(m, mnt->mnt_mountpoint, 0); in propagate_mount_busy()
[all …]
/fs/proc/
Dproc_sysctl.c34 if (!table->child) { in proc_sys_make_inode()
91 if (table && !table->child) { in proc_sys_lookup()
96 table = table ? table->child : head->ctl_table; in proc_sys_lookup()
183 struct dentry *child, *dir = filp->f_path.dentry; in proc_sys_fill_cache() local
193 child = d_lookup(dir, &qname); in proc_sys_fill_cache()
194 if (!child) { in proc_sys_fill_cache()
195 child = d_alloc(dir, &qname); in proc_sys_fill_cache()
196 if (child) { in proc_sys_fill_cache()
199 dput(child); in proc_sys_fill_cache()
202 child->d_op = &proc_sys_dentry_operations; in proc_sys_fill_cache()
[all …]
Dproc_devtree.c181 struct device_node *child; in proc_device_tree_add_node() local
185 for (child = NULL; (child = of_get_next_child(np, child));) { in proc_device_tree_add_node()
187 p = strrchr(child->full_name, '/'); in proc_device_tree_add_node()
189 p = child->full_name; in proc_device_tree_add_node()
199 proc_device_tree_add_node(child, ent); in proc_device_tree_add_node()
201 of_node_put(child); in proc_device_tree_add_node()
/fs/sysfs/
Dinode.c136 struct sysfs_dirent *child; in sysfs_count_nlink() local
139 for (child = sd->s_dir.children; child; child = child->s_sibling) in sysfs_count_nlink()
140 if (sysfs_type(child) == SYSFS_DIR) in sysfs_count_nlink()
/fs/ocfs2/
Dexport.c79 static struct dentry *ocfs2_get_parent(struct dentry *child) in ocfs2_get_parent() argument
84 struct inode *dir = child->d_inode; in ocfs2_get_parent()
86 mlog_entry("(0x%p, '%.*s')\n", child, in ocfs2_get_parent()
87 child->d_name.len, child->d_name.name); in ocfs2_get_parent()
/fs/coda/
Dcache.c86 struct list_head *child; in coda_flag_children() local
90 list_for_each(child, &parent->d_subdirs) in coda_flag_children()
92 de = list_entry(child, struct dentry, d_u.d_child); in coda_flag_children()
/fs/debugfs/
Dinode.c378 struct dentry *child; in debugfs_remove_recursive() local
403 child = list_entry(parent->d_subdirs.next, struct dentry, in debugfs_remove_recursive()
410 if (!list_empty(&child->d_subdirs)) { in debugfs_remove_recursive()
412 parent = child; in debugfs_remove_recursive()
416 __debugfs_remove(child, parent); in debugfs_remove_recursive()
417 if (parent->d_subdirs.next == &child->d_u.d_child) { in debugfs_remove_recursive()
/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()
251 char *name, struct dentry *child) in get_name() argument
278 buffer.ino = child->d_inode->i_ino; in get_name()
/fs/configfs/
Ddir.c541 struct dentry *child; in detach_groups() local
554 child = sd->s_dentry; in detach_groups()
556 mutex_lock(&child->d_inode->i_mutex); in detach_groups()
559 child->d_inode->i_flags |= S_DEAD; in detach_groups()
561 mutex_unlock(&child->d_inode->i_mutex); in detach_groups()
563 d_delete(child); in detach_groups()
564 dput(child); in detach_groups()
588 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group() local
597 child = d_alloc(parent, &name); in create_default_group()
598 if (child) { in create_default_group()
[all …]
/fs/efs/
Dnamei.c113 struct dentry *efs_get_parent(struct dentry *child) in efs_get_parent() argument
119 ino = efs_find_entry(child->d_inode, "..", 2); in efs_get_parent()
121 parent = d_obtain_alias(efs_iget(child->d_inode->i_sb, ino)); in efs_get_parent()
/fs/jffs2/
Dsuper.c89 static struct dentry *jffs2_get_parent(struct dentry *child) in jffs2_get_parent() argument
94 BUG_ON(!S_ISDIR(child->d_inode->i_mode)); in jffs2_get_parent()
96 f = JFFS2_INODE_INFO(child->d_inode); in jffs2_get_parent()
103 return d_obtain_alias(jffs2_iget(child->d_inode->i_sb, pino)); in jffs2_get_parent()
/fs/gfs2/
Dops_export.c91 struct dentry *child) in gfs2_get_name() argument
94 struct inode *inode = child->d_inode; in gfs2_get_name()
129 static struct dentry *gfs2_get_parent(struct dentry *child) in gfs2_get_parent() argument
140 dentry = d_obtain_alias(gfs2_lookupi(child->d_inode, &dotdot, 1)); in gfs2_get_parent()
/fs/nfs/
Dsysctl.c69 .child = nfs_cb_sysctls,
79 .child = nfs_cb_sysctl_dir,
/fs/notify/inotify/
Dinotify.c189 struct dentry *child; in set_dentry_child_flags() local
191 list_for_each_entry(child, &alias->d_subdirs, d_u.d_child) { in set_dentry_child_flags()
192 if (!child->d_inode) in set_dentry_child_flags()
195 spin_lock(&child->d_lock); in set_dentry_child_flags()
197 child->d_flags |= DCACHE_INOTIFY_PARENT_WATCHED; in set_dentry_child_flags()
199 child->d_flags &=~DCACHE_INOTIFY_PARENT_WATCHED; in set_dentry_child_flags()
200 spin_unlock(&child->d_lock); in set_dentry_child_flags()
/fs/ubifs/
Ddebug.c1425 struct ubifs_znode *znode, *child; in dbg_walk_index() local
1446 child = zbr->znode; in dbg_walk_index()
1447 if (!child) { in dbg_walk_index()
1448 child = ubifs_load_znode(c, zbr, znode, 0); in dbg_walk_index()
1449 if (IS_ERR(child)) { in dbg_walk_index()
1450 err = PTR_ERR(child); in dbg_walk_index()
1453 zbr->znode = child; in dbg_walk_index()
1456 znode = child; in dbg_walk_index()
1496 child = zbr->znode; in dbg_walk_index()
1497 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/autofs4/
Dautofs_i.h254 struct dentry *child; in __simple_empty() local
257 list_for_each_entry(child, &dentry->d_subdirs, d_u.d_child) in __simple_empty()
258 if (simple_positive(child)) in __simple_empty()
/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/xfs/linux-2.6/
Dxfs_export.c206 struct dentry *child) in xfs_fs_get_parent() argument
211 error = xfs_lookup(XFS_I(child->d_inode), &xfs_name_dotdot, &cip, NULL); in xfs_fs_get_parent()
/fs/ext4/
Dnamei.h8 extern struct dentry *ext4_get_parent(struct dentry *child);
/fs/ext3/
Dnamei.h8 extern struct dentry *ext3_get_parent(struct dentry *child);
/fs/ext2/
Ddir.c361 struct qstr *child, struct page ** res_page) in ext2_find_entry() argument
363 const char *name = child->name; in ext2_find_entry()
364 int namelen = child->len; in ext2_find_entry()
437 ino_t ext2_inode_by_name(struct inode *dir, struct qstr *child) in ext2_inode_by_name() argument
443 de = ext2_find_entry (dir, child, &page); in ext2_inode_by_name()

12