/fs/openpromfs/ |
D | inode.c | 182 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/ext4/ |
D | crypto_policy.c | 133 struct inode *child) in ext4_is_child_context_consistent_with_parent() argument 138 if ((parent == NULL) || (child == NULL)) { in ext4_is_child_context_consistent_with_parent() 139 pr_err("parent %p child %p\n", parent, child); in ext4_is_child_context_consistent_with_parent() 146 if (!ext4_encrypted_inode(child)) in ext4_is_child_context_consistent_with_parent() 151 res = ext4_get_encryption_info(child); in ext4_is_child_context_consistent_with_parent() 155 child_ci = EXT4_I(child)->i_crypt_info; in ext4_is_child_context_consistent_with_parent() 176 int ext4_inherit_context(struct inode *parent, struct inode *child) in ext4_inherit_context() argument 206 res = ext4_xattr_set(child, EXT4_XATTR_INDEX_ENCRYPTION, in ext4_inherit_context() 210 ext4_set_inode_flag(child, EXT4_INODE_ENCRYPT); in ext4_inherit_context() 211 ext4_clear_inode_state(child, EXT4_STATE_MAY_INLINE_DATA); in ext4_inherit_context() [all …]
|
/fs/ |
D | pnode.c | 207 struct mount *child; in propagate_one() local 242 child = copy_tree(last_source, last_source->mnt.mnt_root, type); in propagate_one() 243 if (IS_ERR(child)) in propagate_one() 244 return PTR_ERR(child); in propagate_one() 245 mnt_set_mountpoint(m, mp, child); in propagate_one() 247 last_source = child; in propagate_one() 253 list_add_tail(&child->mnt_hash, list); in propagate_one() 339 struct mount *m, *child; in propagate_mount_busy() local 356 child = __lookup_mnt(&m->mnt, mnt->mnt_mountpoint, 0); in propagate_mount_busy() 357 if (child && list_empty(&child->mnt_mounts) && in propagate_mount_busy() [all …]
|
D | libfs.c | 288 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/proc/ |
D | proc_devtree.c | 193 struct device_node *child; in proc_device_tree_add_node() local 197 for (child = NULL; (child = of_get_next_child(np, child));) { in proc_device_tree_add_node() 199 p = kbasename(child->full_name); in proc_device_tree_add_node() 207 proc_device_tree_add_node(child, ent); in proc_device_tree_add_node() 209 of_node_put(child); in proc_device_tree_add_node()
|
D | proc_sysctl.c | 581 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/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() 281 struct dentry *child; in __fixup_perms_recursive() local 298 list_for_each_entry(child, &dentry->d_subdirs, d_u.d_child) { in __fixup_perms_recursive() 299 spin_lock_nested(&child->d_lock, depth + 1); in __fixup_perms_recursive() 300 if (!(limit->flags & BY_NAME) || qstr_case_eq(&child->d_name, &limit->name)) { in __fixup_perms_recursive() 301 if (child->d_inode) { in __fixup_perms_recursive() 302 get_derived_permission(dentry, child); in __fixup_perms_recursive() 303 fixup_tmp_permissions(child->d_inode); in __fixup_perms_recursive() 304 spin_unlock(&child->d_lock); in __fixup_perms_recursive() [all …]
|
/fs/notify/ |
D | fsnotify.c | 67 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/ |
D | inode.c | 537 struct dentry *child; in debugfs_remove_recursive() local 562 child = list_entry(parent->d_subdirs.next, struct dentry, in debugfs_remove_recursive() 570 if (!list_empty(&child->d_subdirs)) { in debugfs_remove_recursive() 572 parent = child; in debugfs_remove_recursive() 576 __debugfs_remove(child, parent); in debugfs_remove_recursive() 577 if (parent->d_subdirs.next == &child->d_u.d_child) { in debugfs_remove_recursive() 581 if (child->d_u.d_child.next != &parent->d_subdirs) { in debugfs_remove_recursive() 582 child = list_entry(child->d_u.d_child.next, in debugfs_remove_recursive()
|
/fs/ocfs2/ |
D | export.c | 145 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/ |
D | snap.c | 392 struct ceph_snap_realm *child; in rebuild_snap_realms() local 397 list_for_each_entry(child, &realm->children, child_item) in rebuild_snap_realms() 398 rebuild_snap_realms(child); in rebuild_snap_realms() 582 struct ceph_snap_realm *child; in queue_realm_cap_snaps() local 603 list_for_each_entry(child, &realm->children, child_item) { in queue_realm_cap_snaps() 605 realm, realm->ino, child, child->ino); in queue_realm_cap_snaps() 606 list_del_init(&child->dirty_item); in queue_realm_cap_snaps() 607 list_add(&child->dirty_item, &realm->dirty_item); in queue_realm_cap_snaps() 895 struct ceph_snap_realm *child = in ceph_handle_snap() local 898 if (!child) in ceph_handle_snap() [all …]
|
/fs/configfs/ |
D | dir.c | 618 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/exportfs/ |
D | expfs.c | 22 static int get_name(const struct path *path, char *name, struct dentry *child); 26 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(&path, name, child); in exportfs_get_name() 252 static int get_name(const struct path *path, char *name, struct dentry *child) in get_name() argument 261 .ino = child->d_inode->i_ino in get_name()
|
/fs/gfs2/ |
D | export.c | 86 struct dentry *child) in gfs2_get_name() argument 89 struct inode *inode = child->d_inode; in gfs2_get_name() 127 static struct dentry *gfs2_get_parent(struct dentry *child) in gfs2_get_parent() argument 129 return d_obtain_alias(gfs2_lookupi(child->d_inode, &gfs2_qdotdot, 1)); in gfs2_get_parent()
|
/fs/efs/ |
D | namei.c | 106 struct dentry *efs_get_parent(struct dentry *child) in efs_get_parent() argument 111 ino = efs_find_entry(child->d_inode, "..", 2); in efs_get_parent() 113 parent = d_obtain_alias(efs_iget(child->d_inode->i_sb, ino)); in efs_get_parent()
|
/fs/nfs/ |
D | sysctl.c | 38 .child = nfs_cb_sysctls, 47 .child = nfs_cb_sysctl_dir,
|
D | nfs4sysctl.c | 43 .child = nfs4_cb_sysctls, 52 .child = nfs4_cb_sysctl_dir,
|
/fs/jffs2/ |
D | super.c | 136 static struct dentry *jffs2_get_parent(struct dentry *child) in jffs2_get_parent() argument 141 BUG_ON(!S_ISDIR(child->d_inode->i_mode)); in jffs2_get_parent() 143 f = JFFS2_INODE_INFO(child->d_inode); in jffs2_get_parent() 150 return d_obtain_alias(jffs2_iget(child->d_inode->i_sb, pino)); in jffs2_get_parent()
|
/fs/btrfs/ |
D | export.c | 159 static struct dentry *btrfs_get_parent(struct dentry *child) in btrfs_get_parent() argument 161 struct inode *dir = child->d_inode; in btrfs_get_parent() 227 struct dentry *child) in btrfs_get_name() argument 229 struct inode *inode = child->d_inode; 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() 1594 zbr->znode = 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() [all …]
|
D | tnc_misc.c | 185 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/ |
D | export.c | 111 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/ |
D | export.c | 43 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/nfsd/ |
D | nfs4recover.c | 381 purge_old(struct dentry *parent, struct dentry *child, struct nfsd_net *nn) in purge_old() argument 385 if (nfs4_has_reclaimed_state(child->d_name.name, nn)) in purge_old() 388 status = vfs_rmdir(parent->d_inode, child); in purge_old() 391 child->d_name.name); in purge_old() 419 load_recdir(struct dentry *parent, struct dentry *child, struct nfsd_net *nn) in load_recdir() argument 421 if (child->d_name.len != HEXDIR_LEN - 1) { in load_recdir() 423 child->d_name.name); in load_recdir() 427 nfs4_client_to_reclaim(child->d_name.name, nn); in load_recdir()
|
/fs/nilfs2/ |
D | namei.c | 440 static struct dentry *nilfs_get_parent(struct dentry *child) in nilfs_get_parent() argument 447 ino = nilfs_inode_by_name(child->d_inode, &dotdot); in nilfs_get_parent() 451 root = NILFS_I(child->d_inode)->i_root; in nilfs_get_parent() 453 inode = nilfs_iget(child->d_inode->i_sb, root, ino); in nilfs_get_parent()
|