/fs/ |
D | pnode.c | 227 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() 264 mnt_set_mountpoint(m, mp, child); in propagate_one() 266 last_source = child; in propagate_one() 272 hlist_add_head(&child->mnt_hash, list); in propagate_one() 273 return count_mounts(m->mnt_ns, child); in propagate_one() 340 struct mount *child; in find_topper() local 345 child = list_first_entry(&mnt->mnt_mounts, struct mount, mnt_child); in find_topper() [all …]
|
/fs/openpromfs/ |
D | inode.c | 184 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/ |
D | export.c | 288 struct dentry *child, u64 ino) in __get_parent() argument 301 if (child) { in __get_parent() 302 req->r_inode = d_inode(child); in __get_parent() 303 ihold(d_inode(child)); in __get_parent() 328 static struct dentry *ceph_get_parent(struct dentry *child) in ceph_get_parent() argument 330 struct inode *inode = d_inode(child); in ceph_get_parent() 337 if (!d_is_dir(child)) { in ceph_get_parent() 367 dn = __get_parent(child->d_sb, child, 0); in ceph_get_parent() 371 child, ceph_vinop(inode), (long)PTR_ERR_OR_ZERO(dn)); in ceph_get_parent() 403 struct dentry *child) in __get_snap_name() argument [all …]
|
/fs/kernfs/ |
D | mount.c | 115 static struct dentry *kernfs_get_parent_dentry(struct dentry *child) in kernfs_get_parent_dentry() argument 117 struct kernfs_node *kn = kernfs_dentry_node(child); in kernfs_get_parent_dentry() 119 return d_obtain_alias(kernfs_get_inode(child->d_sb, kn->parent)); in kernfs_get_parent_dentry() 150 static struct kernfs_node *find_next_ancestor(struct kernfs_node *child, in find_next_ancestor() argument 153 if (child == parent) { in find_next_ancestor() 158 while (child->parent != parent) { in find_next_ancestor() 159 if (!child->parent) in find_next_ancestor() 161 child = child->parent; in find_next_ancestor() 164 return child; in find_next_ancestor()
|
/fs/sdcardfs/ |
D | derived_perm.c | 24 static void inherit_derived_state(struct inode *parent, struct inode *child) in inherit_derived_state() argument 27 struct sdcardfs_inode_info *ci = SDCARDFS_I(child); in inherit_derived_state() 290 struct dentry *child; in __fixup_perms_recursive() local 307 list_for_each_entry(child, &dentry->d_subdirs, d_child) { in __fixup_perms_recursive() 308 spin_lock_nested(&child->d_lock, depth + 1); in __fixup_perms_recursive() 309 if (!(limit->flags & BY_NAME) || qstr_case_eq(&child->d_name, &limit->name)) { in __fixup_perms_recursive() 310 if (d_inode(child)) { in __fixup_perms_recursive() 311 get_derived_permission(dentry, child); in __fixup_perms_recursive() 312 fixup_tmp_permissions(d_inode(child)); in __fixup_perms_recursive() 313 spin_unlock(&child->d_lock); in __fixup_perms_recursive() [all …]
|
/fs/crypto/ |
D | policy.c | 447 int fscrypt_has_permitted_context(struct inode *parent, struct inode *child) in fscrypt_has_permitted_context() argument 453 if (!S_ISREG(child->i_mode) && !S_ISDIR(child->i_mode) && in fscrypt_has_permitted_context() 454 !S_ISLNK(child->i_mode)) in fscrypt_has_permitted_context() 462 if (!IS_ENCRYPTED(child)) in fscrypt_has_permitted_context() 483 err = fscrypt_get_encryption_info(child); in fscrypt_has_permitted_context() 491 err = fscrypt_get_policy(child, &child_policy); in fscrypt_has_permitted_context() 508 int fscrypt_inherit_context(struct inode *parent, struct inode *child, in fscrypt_inherit_context() argument 527 res = parent->i_sb->s_cop->set_context(child, &ctx, ctxsize, fs_data); in fscrypt_inherit_context() 530 return preload ? fscrypt_get_encryption_info(child): 0; in fscrypt_inherit_context()
|
/fs/autofs/ |
D | expire.c | 74 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/ |
D | proc_sysctl.c | 37 return head->ctl_table[0].child == sysctl_mount_point; in is_empty_dir() 42 dir->header.ctl_table[0].child = sysctl_mount_point; in set_empty_dir() 48 dir->header.ctl_table[0].child = NULL; in clear_empty_dir() 693 struct dentry *child, *dir = file->f_path.dentry; in proc_sys_fill_cache() local 703 child = d_lookup(dir, &qname); in proc_sys_fill_cache() 704 if (!child) { in proc_sys_fill_cache() 706 child = d_alloc_parallel(dir, &qname, &wq); in proc_sys_fill_cache() 707 if (IS_ERR(child)) in proc_sys_fill_cache() 709 if (d_in_lookup(child)) { in proc_sys_fill_cache() 713 d_lookup_done(child); in proc_sys_fill_cache() [all …]
|
/fs/notify/ |
D | fsnotify.c | 123 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/bfs/ |
D | dir.c | 24 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/tracefs/ |
D | inode.c | 563 struct dentry *child, *parent; in tracefs_remove_recursive() local 578 list_for_each_entry(child, &parent->d_subdirs, d_child) { in tracefs_remove_recursive() 579 if (!simple_positive(child)) in tracefs_remove_recursive() 583 if (!list_empty(&child->d_subdirs)) { in tracefs_remove_recursive() 586 parent = child; in tracefs_remove_recursive() 592 if (!__tracefs_remove(child, parent)) in tracefs_remove_recursive() 607 child = parent; in tracefs_remove_recursive() 611 if (child != dentry) in tracefs_remove_recursive() 615 if (!__tracefs_remove(child, parent)) in tracefs_remove_recursive()
|
/fs/nfs/blocklayout/ |
D | dev.c | 182 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/ |
D | export.c | 131 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/debugfs/ |
D | inode.c | 757 struct dentry *child, *parent; in debugfs_remove_recursive() local 772 list_for_each_entry(child, &parent->d_subdirs, d_child) { in debugfs_remove_recursive() 773 if (!simple_positive(child)) in debugfs_remove_recursive() 777 if (!list_empty(&child->d_subdirs)) { in debugfs_remove_recursive() 780 parent = child; in debugfs_remove_recursive() 786 if (!__debugfs_remove(child, parent)) in debugfs_remove_recursive() 801 child = parent; in debugfs_remove_recursive() 805 if (child != dentry) in debugfs_remove_recursive() 809 if (!__debugfs_remove(child, parent)) in debugfs_remove_recursive()
|
/fs/configfs/ |
D | dir.c | 635 struct dentry *child; in detach_groups() local 648 child = sd->s_dentry; in detach_groups() 650 inode_lock(d_inode(child)); in detach_groups() 653 d_inode(child)->i_flags |= S_DEAD; in detach_groups() 654 dont_mount(child); in detach_groups() 656 inode_unlock(d_inode(child)); in detach_groups() 658 d_delete(child); in detach_groups() 659 dput(child); in detach_groups() 683 struct dentry *child, *parent = parent_group->cg_item.ci_dentry; in create_default_group() local 689 child = d_alloc_name(parent, group->cg_item.ci_name); in create_default_group() [all …]
|
/fs/gfs2/ |
D | export.c | 86 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/efs/ |
D | namei.c | 110 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/ |
D | expfs.c | 24 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/nfs/ |
D | sysctl.c | 39 .child = nfs_cb_sysctls, 48 .child = nfs_cb_sysctl_dir,
|
D | nfs4sysctl.c | 44 .child = nfs4_cb_sysctls, 53 .child = nfs4_cb_sysctl_dir,
|
/fs/jffs2/ |
D | super.c | 135 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/btrfs/ |
D | export.c | 155 static struct dentry *btrfs_get_parent(struct dentry *child) in btrfs_get_parent() argument 157 struct inode *dir = d_inode(child); in btrfs_get_parent() 224 struct dentry *child) in btrfs_get_name() argument 226 struct inode *inode = d_inode(child); in btrfs_get_name()
|
/fs/ubifs/ |
D | debug.c | 1566 struct ubifs_znode *znode, *child; in dbg_walk_index() local 1587 child = zbr->znode; in dbg_walk_index() 1588 if (!child) { in dbg_walk_index() 1589 child = ubifs_load_znode(c, zbr, znode, 0); in dbg_walk_index() 1590 if (IS_ERR(child)) { in dbg_walk_index() 1591 err = PTR_ERR(child); in dbg_walk_index() 1596 znode = child; in dbg_walk_index() 1634 child = zbr->znode; in dbg_walk_index() 1635 if (!child) { in dbg_walk_index() 1636 child = ubifs_load_znode(c, zbr, znode, idx); in dbg_walk_index() [all …]
|
D | tnc_misc.c | 175 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/squashfs/ |
D | export.c | 98 static struct dentry *squashfs_get_parent(struct dentry *child) in squashfs_get_parent() argument 100 struct inode *inode = d_inode(child); in squashfs_get_parent()
|