/fs/debugfs/ |
D | inode.c | 140 struct dentry *parent, in debugfs_create_by_name() argument 150 if (!parent) { in debugfs_create_by_name() 152 parent = debugfs_mount->mnt_sb->s_root; in debugfs_create_by_name() 155 if (!parent) { in debugfs_create_by_name() 161 mutex_lock(&parent->d_inode->i_mutex); in debugfs_create_by_name() 162 *dentry = lookup_one_len(name, parent, strlen(name)); in debugfs_create_by_name() 166 error = debugfs_mkdir(parent->d_inode, *dentry, mode); in debugfs_create_by_name() 169 error = debugfs_link(parent->d_inode, *dentry, mode); in debugfs_create_by_name() 172 error = debugfs_create(parent->d_inode, *dentry, mode); in debugfs_create_by_name() 178 mutex_unlock(&parent->d_inode->i_mutex); in debugfs_create_by_name() [all …]
|
D | file.c | 96 struct dentry *parent, u8 *value) in debugfs_create_u8() argument 98 return debugfs_create_file(name, mode, parent, value, &fops_u8); in debugfs_create_u8() 139 struct dentry *parent, u16 *value) in debugfs_create_u16() argument 141 return debugfs_create_file(name, mode, parent, value, &fops_u16); in debugfs_create_u16() 182 struct dentry *parent, u32 *value) in debugfs_create_u32() argument 184 return debugfs_create_file(name, mode, parent, value, &fops_u32); in debugfs_create_u32() 226 struct dentry *parent, u64 *value) in debugfs_create_u64() argument 228 return debugfs_create_file(name, mode, parent, value, &fops_u64); in debugfs_create_u64() 257 struct dentry *parent, u8 *value) in debugfs_create_x8() argument 259 return debugfs_create_file(name, mode, parent, value, &fops_x8); in debugfs_create_x8() [all …]
|
/fs/ocfs2/ |
D | export.c | 83 struct dentry *parent; in ocfs2_get_parent() local 96 parent = ERR_PTR(status); in ocfs2_get_parent() 102 parent = ERR_PTR(-ENOENT); in ocfs2_get_parent() 106 parent = d_obtain_alias(ocfs2_iget(OCFS2_SB(dir->i_sb), blkno, 0, 0)); in ocfs2_get_parent() 107 if (!IS_ERR(parent)) in ocfs2_get_parent() 108 parent->d_op = &ocfs2_dentry_ops; in ocfs2_get_parent() 114 mlog_exit_ptr(parent); in ocfs2_get_parent() 116 return parent; in ocfs2_get_parent() 151 struct inode *parent; in ocfs2_encode_fh() local 155 parent = dentry->d_parent->d_inode; in ocfs2_encode_fh() [all …]
|
/fs/hfsplus/ |
D | brec.c | 130 if (!new_node->parent) { in hfs_brec_insert() 132 new_node->parent = tree->root; in hfs_brec_insert() 134 fd->bnode = hfs_bnode_find(tree, new_node->parent); in hfs_brec_insert() 166 struct hfs_bnode *node, *parent; in hfs_brec_remove() local 183 if (!node->parent) in hfs_brec_remove() 185 parent = hfs_bnode_find(tree, node->parent); in hfs_brec_remove() 186 if (IS_ERR(parent)) in hfs_brec_remove() 187 return PTR_ERR(parent); in hfs_brec_remove() 189 node = fd->bnode = parent; in hfs_brec_remove() 234 new_node->parent = node->parent; in hfs_bnode_split() [all …]
|
D | bfind.c | 87 u32 nidx, parent; in hfs_brec_find() local 100 parent = 0; in hfs_brec_find() 112 bnode->parent = parent; in hfs_brec_find() 120 parent = nidx; in hfs_brec_find() 130 height, bnode->height, bnode->type, nidx, parent); in hfs_brec_find()
|
/fs/hfs/ |
D | brec.c | 143 if (!new_node->parent) { in hfs_brec_insert() 145 new_node->parent = tree->root; in hfs_brec_insert() 147 fd->bnode = hfs_bnode_find(tree, new_node->parent); in hfs_brec_insert() 179 struct hfs_bnode *node, *parent; in hfs_brec_remove() local 196 if (!node->parent) in hfs_brec_remove() 198 parent = hfs_bnode_find(tree, node->parent); in hfs_brec_remove() 199 if (IS_ERR(parent)) in hfs_brec_remove() 200 return PTR_ERR(parent); in hfs_brec_remove() 202 node = fd->bnode = parent; in hfs_brec_remove() 247 new_node->parent = node->parent; in hfs_bnode_split() [all …]
|
/fs/proc/ |
D | generic.c | 552 dp->parent = dir; in proc_register() 559 static struct proc_dir_entry *__proc_create(struct proc_dir_entry **parent, in __proc_create() argument 571 if (xlate_proc_name(name, parent, &fn) != 0) in __proc_create() 599 struct proc_dir_entry *parent, const char *dest) in proc_symlink() argument 603 ent = __proc_create(&parent, name, in proc_symlink() 610 if (proc_register(parent, ent) < 0) { in proc_symlink() 624 struct proc_dir_entry *parent) in proc_mkdir_mode() argument 628 ent = __proc_create(&parent, name, S_IFDIR | mode, 2); in proc_mkdir_mode() 630 if (proc_register(parent, ent) < 0) { in proc_mkdir_mode() 639 struct proc_dir_entry *parent) in proc_net_mkdir() argument [all …]
|
/fs/gfs2/ |
D | ops_dentry.c | 39 struct dentry *parent = dget_parent(dentry); in gfs2_drevalidate() local 40 struct gfs2_sbd *sdp = GFS2_SB(parent->d_inode); in gfs2_drevalidate() 41 struct gfs2_inode *dip = GFS2_I(parent->d_inode); in gfs2_drevalidate() 64 error = gfs2_dir_check(parent->d_inode, &dentry->d_name, ip); in gfs2_drevalidate() 82 dput(parent); in gfs2_drevalidate() 95 dput(parent); in gfs2_drevalidate() 101 dput(parent); in gfs2_drevalidate()
|
D | ops_export.c | 90 static int gfs2_get_name(struct dentry *parent, char *name, in gfs2_get_name() argument 93 struct inode *dir = parent->d_inode; in gfs2_get_name() 263 struct gfs2_inum_host parent; in gfs2_fh_to_parent() local 269 parent.no_formal_ino = ((u64)be32_to_cpu(fh[4])) << 32; in gfs2_fh_to_parent() 270 parent.no_formal_ino |= be32_to_cpu(fh[5]); in gfs2_fh_to_parent() 271 parent.no_addr = ((u64)be32_to_cpu(fh[6])) << 32; in gfs2_fh_to_parent() 272 parent.no_addr |= be32_to_cpu(fh[7]); in gfs2_fh_to_parent() 273 return gfs2_get_dentry(sb, &parent); in gfs2_fh_to_parent()
|
/fs/ubifs/ |
D | lpt.c | 495 struct ubifs_nnode *np = nnode->parent; in ubifs_add_nnode_dirt() 516 ubifs_add_lpt_dirt(c, pnode->parent->nbranch[pnode->iip].lnum, in add_pnode_dirt() 558 struct ubifs_nnode *parent, int iip) in calc_nnode_num_from_parent() argument 562 if (!parent) in calc_nnode_num_from_parent() 564 shft = (c->lpt_hght - parent->level) * UBIFS_LPT_FANOUT_SHIFT; in calc_nnode_num_from_parent() 565 num = parent->num ^ (1 << shft); in calc_nnode_num_from_parent() 583 struct ubifs_nnode *parent, int iip) in calc_pnode_num_from_parent() argument 585 int i, n = c->lpt_hght - 1, pnum = parent->num, num = 0; in calc_pnode_num_from_parent() 1096 struct ubifs_nnode *parent, int iip) in validate_nnode() argument 1101 int num = calc_nnode_num_from_parent(c, parent, iip); in validate_nnode() [all …]
|
D | tnc_misc.c | 67 while (znode->parent != zr && iip >= znode->parent->child_cnt) { in ubifs_tnc_levelorder_next() 68 znode = znode->parent; in ubifs_tnc_levelorder_next() 72 if (unlikely(znode->parent == zr && in ubifs_tnc_levelorder_next() 73 iip >= znode->parent->child_cnt)) { in ubifs_tnc_levelorder_next() 92 zn = ubifs_tnc_find_child(znode->parent, iip + 1); in ubifs_tnc_levelorder_next() 95 iip = znode->parent->child_cnt; in ubifs_tnc_levelorder_next() 208 if (unlikely(!znode->parent)) in ubifs_tnc_postorder_next() 212 zn = ubifs_tnc_find_child(znode->parent, znode->iip + 1); in ubifs_tnc_postorder_next() 215 return znode->parent; in ubifs_tnc_postorder_next() 408 struct ubifs_znode *parent, int iip) in ubifs_load_znode() argument [all …]
|
/fs/btrfs/ |
D | ctree.c | 265 struct extent_buffer *parent, int parent_slot, in __btrfs_cow_block() argument 282 if (parent) in __btrfs_cow_block() 283 parent_start = parent->start; in __btrfs_cow_block() 372 WARN_ON(parent && parent != buf); in __btrfs_cow_block() 389 btrfs_set_node_blockptr(parent, parent_slot, in __btrfs_cow_block() 392 btrfs_set_node_ptr_generation(parent, parent_slot, in __btrfs_cow_block() 394 btrfs_mark_buffer_dirty(parent); in __btrfs_cow_block() 395 WARN_ON(btrfs_header_generation(parent) != trans->transid); in __btrfs_cow_block() 397 parent_start, btrfs_header_owner(parent), in __btrfs_cow_block() 398 btrfs_header_generation(parent), level, 1); in __btrfs_cow_block() [all …]
|
/fs/fuse/ |
D | control.c | 74 static struct dentry *fuse_ctl_add_dentry(struct dentry *parent, in fuse_ctl_add_dentry() argument 85 dentry = d_alloc_name(parent, name); in fuse_ctl_add_dentry() 114 struct dentry *parent; in fuse_ctl_add_conn() local 120 parent = fuse_control_sb->s_root; in fuse_ctl_add_conn() 121 inc_nlink(parent->d_inode); in fuse_ctl_add_conn() 123 parent = fuse_ctl_add_dentry(parent, fc, name, S_IFDIR | 0500, 2, in fuse_ctl_add_conn() 126 if (!parent) in fuse_ctl_add_conn() 129 if (!fuse_ctl_add_dentry(parent, fc, "waiting", S_IFREG | 0400, 1, in fuse_ctl_add_conn() 131 !fuse_ctl_add_dentry(parent, fc, "abort", S_IFREG | 0200, 1, in fuse_ctl_add_conn()
|
/fs/hppfs/ |
D | hppfs.c | 67 struct dentry *parent; in dentry_name() local 73 parent = dentry; in dentry_name() 74 while (parent->d_parent != parent) { in dentry_name() 75 if (is_pid(parent)) in dentry_name() 77 else len += parent->d_name.len + 1; in dentry_name() 78 parent = parent->d_parent; in dentry_name() 88 parent = dentry; in dentry_name() 89 while (parent->d_parent != parent) { in dentry_name() 90 if (is_pid(parent)) { in dentry_name() 95 seg_name = parent->d_name.name; in dentry_name() [all …]
|
/fs/ |
D | dcache.c | 171 struct dentry *parent; in d_kill() local 178 parent = NULL; in d_kill() 180 parent = dentry->d_parent; in d_kill() 182 return parent; in d_kill() 620 struct dentry *parent; in shrink_dcache_for_umount_subtree() local 673 parent = NULL; in shrink_dcache_for_umount_subtree() 675 parent = dentry->d_parent; in shrink_dcache_for_umount_subtree() 676 atomic_dec(&parent->d_count); in shrink_dcache_for_umount_subtree() 697 if (!parent) in shrink_dcache_for_umount_subtree() 700 dentry = parent; in shrink_dcache_for_umount_subtree() [all …]
|
D | pnode.c | 297 struct vfsmount *parent = mnt->mnt_parent; in propagate_mount_busy() local 300 if (mnt == parent) in propagate_mount_busy() 311 for (m = propagation_next(parent, parent); m; in propagate_mount_busy() 312 m = propagation_next(m, parent)) { in propagate_mount_busy() 327 struct vfsmount *parent = mnt->mnt_parent; in __propagate_umount() local 330 BUG_ON(parent == mnt); in __propagate_umount() 332 for (m = propagation_next(parent, parent); m; in __propagate_umount() 333 m = propagation_next(m, parent)) { in __propagate_umount()
|
/fs/smbfs/ |
D | cache.c | 59 smb_invalidate_dircache_entries(struct dentry *parent) in smb_invalidate_dircache_entries() argument 61 struct smb_sb_info *server = server_from_dentry(parent); in smb_invalidate_dircache_entries() 66 next = parent->d_subdirs.next; in smb_invalidate_dircache_entries() 67 while (next != &parent->d_subdirs) { in smb_invalidate_dircache_entries() 81 smb_dget_fpos(struct dentry *dentry, struct dentry *parent, unsigned long fpos) in smb_dget_fpos() argument 86 if (d_validate(dent, parent)) { in smb_dget_fpos() 100 next = parent->d_subdirs.next; in smb_dget_fpos() 101 while (next != &parent->d_subdirs) { in smb_dget_fpos()
|
/fs/jfs/ |
D | jfs_inode.c | 72 struct inode *ialloc(struct inode *parent, umode_t mode) in ialloc() argument 74 struct super_block *sb = parent->i_sb; in ialloc() 88 rc = diAlloc(parent, S_ISDIR(mode), inode); in ialloc() 102 if (parent->i_mode & S_ISGID) { in ialloc() 103 inode->i_gid = parent->i_gid; in ialloc() 126 jfs_inode->mode2 = JFS_IP(parent)->mode2 & JFS_FL_INHERIT; in ialloc()
|
/fs/ext3/ |
D | dir.c | 274 struct rb_node *parent; in free_rb_tree_fname() local 293 parent = rb_parent(n); in free_rb_tree_fname() 300 if (!parent) in free_rb_tree_fname() 302 else if (parent->rb_left == n) in free_rb_tree_fname() 303 parent->rb_left = NULL; in free_rb_tree_fname() 304 else if (parent->rb_right == n) in free_rb_tree_fname() 305 parent->rb_right = NULL; in free_rb_tree_fname() 306 n = parent; in free_rb_tree_fname() 336 struct rb_node **p, *parent = NULL; in ext3_htree_store_dirent() local 358 parent = *p; in ext3_htree_store_dirent() [all …]
|
/fs/ext4/ |
D | dir.c | 276 struct rb_node *parent; in free_rb_tree_fname() local 295 parent = rb_parent(n); in free_rb_tree_fname() 302 if (!parent) in free_rb_tree_fname() 304 else if (parent->rb_left == n) in free_rb_tree_fname() 305 parent->rb_left = NULL; in free_rb_tree_fname() 306 else if (parent->rb_right == n) in free_rb_tree_fname() 307 parent->rb_right = NULL; in free_rb_tree_fname() 308 n = parent; in free_rb_tree_fname() 338 struct rb_node **p, *parent = NULL; in ext4_htree_store_dirent() local 360 parent = *p; in ext4_htree_store_dirent() [all …]
|
/fs/nfs/ |
D | unlink.c | 110 static int nfs_do_call_unlink(struct dentry *parent, struct inode *dir, struct nfs_unlinkdata *data) in nfs_do_call_unlink() argument 127 alias = d_lookup(parent, &data->args.name); in nfs_do_call_unlink() 168 struct dentry *parent; in nfs_call_unlink() local 173 parent = dget_parent(dentry); in nfs_call_unlink() 174 if (parent == NULL) in nfs_call_unlink() 176 dir = parent->d_inode; in nfs_call_unlink() 189 ret = nfs_do_call_unlink(parent, dir, data); in nfs_call_unlink() 191 dput(parent); in nfs_call_unlink()
|
D | nfs4state.c | 144 struct rb_node **p, *parent; in nfs_alloc_unique_id() local 158 parent = NULL; in nfs_alloc_unique_id() 161 parent = *p; in nfs_alloc_unique_id() 162 pos = rb_entry(parent, struct nfs_unique_id, rb_node); in nfs_alloc_unique_id() 171 rb_link_node(&new->rb_node, parent, p); in nfs_alloc_unique_id() 181 parent = rb_next(parent); in nfs_alloc_unique_id() 182 if (parent == NULL) in nfs_alloc_unique_id() 184 pos = rb_entry(parent, struct nfs_unique_id, rb_node); in nfs_alloc_unique_id() 201 *parent = NULL; in nfs4_find_state_owner() local 205 parent = *p; in nfs4_find_state_owner() [all …]
|
/fs/notify/dnotify/ |
D | dnotify.c | 166 struct dentry *parent; in dnotify_parent() local 172 parent = dentry->d_parent; in dnotify_parent() 173 if (parent->d_inode->i_dnotify_mask & event) { in dnotify_parent() 174 dget(parent); in dnotify_parent() 176 __inode_dir_notify(parent->d_inode, event); in dnotify_parent() 177 dput(parent); in dnotify_parent()
|
/fs/ncpfs/ |
D | ncplib_kernel.h | 189 ncp_renew_dentries(struct dentry *parent) in ncp_renew_dentries() argument 191 struct ncp_server *server = NCP_SERVER(parent->d_inode); in ncp_renew_dentries() 196 next = parent->d_subdirs.next; in ncp_renew_dentries() 197 while (next != &parent->d_subdirs) { in ncp_renew_dentries() 211 ncp_invalidate_dircache_entries(struct dentry *parent) in ncp_invalidate_dircache_entries() argument 213 struct ncp_server *server = NCP_SERVER(parent->d_inode); in ncp_invalidate_dircache_entries() 218 next = parent->d_subdirs.next; in ncp_invalidate_dircache_entries() 219 while (next != &parent->d_subdirs) { in ncp_invalidate_dircache_entries()
|
/fs/notify/inotify/ |
D | inotify.c | 266 struct dentry *parent; in inotify_d_instantiate() local 272 parent = entry->d_parent; in inotify_d_instantiate() 273 if (parent->d_inode && inotify_inode_watched(parent->d_inode)) in inotify_d_instantiate() 283 struct dentry *parent; in inotify_d_move() local 285 parent = entry->d_parent; in inotify_d_move() 286 if (inotify_inode_watched(parent->d_inode)) in inotify_d_move() 335 struct dentry *parent; in inotify_dentry_parent_queue_event() local 342 parent = dentry->d_parent; in inotify_dentry_parent_queue_event() 343 inode = parent->d_inode; in inotify_dentry_parent_queue_event() 346 dget(parent); in inotify_dentry_parent_queue_event() [all …]
|