Lines Matching defs:child_dentry
714 static struct hmdfs_dentry *hmdfs_in_level(struct dentry *child_dentry,
755 struct hmdfs_dentry *hmdfs_find_dentry(struct dentry *child_dentry,
769 de = hmdfs_in_level(child_dentry, level, ctx);
790 void update_dentry(struct hmdfs_dentry_group *d, struct dentry *child_dentry,
796 const struct qstr name = child_dentry->d_name;
802 gdi = hmdfs_sb == child_dentry->d_sb ? hmdfs_d(child_dentry) : NULL;
803 if (!gdi && S_ISLNK(d_inode(child_dentry)->i_mode)) {
804 ino = d_inode(child_dentry)->i_ino;
805 igen = d_inode(child_dentry)->i_generation;
822 else if (!gdi && S_ISLNK(d_inode(child_dentry)->i_mode))
823 de->i_mode = d_inode(child_dentry)->i_mode;
872 int create_dentry(struct dentry *child_dentry, struct inode *inode,
877 const struct qstr qstr = child_dentry->d_name;
936 update_dentry(dentry_blk, child_dentry, inode, sbi->sb, namehash,
963 int update_inode_to_dentry(struct dentry *child_dentry, struct inode *inode)
965 struct hmdfs_sb_info *sbi = d_inode(child_dentry)->i_sb->s_fs_info;
973 parent_dentry = child_dentry->d_parent;
985 hmdfs_init_dcache_lookup_ctx(&ctx, sbi, &child_dentry->d_name,
987 de = hmdfs_find_dentry(child_dentry, &ctx);
2585 struct dentry *child_dentry = NULL;
2599 child_dentry = lookup_one_len(unlink_name, path.dentry,
2601 if (IS_ERR(child_dentry)) {
2602 err = PTR_ERR(child_dentry);
2606 if (d_is_negative(child_dentry)) {
2608 dput(child_dentry);
2611 child_inode = d_inode(child_dentry);
2619 err = vfs_unlink(&nop_mnt_idmap, dir, child_dentry, NULL);
2626 hmdfs_rename_bak(child_dentry);
2632 dput(child_dentry);
2648 struct dentry *child_dentry = NULL;
2664 child_dentry = kern_path_create(AT_FDCWD, mkdir_abs_path,
2666 if (IS_ERR(child_dentry)) {
2667 ret = child_dentry;
2671 hmdfs_mark_drop_flag(device_id, child_dentry->d_parent);
2672 err = vfs_mkdir(&nop_mnt_idmap, d_inode(path.dentry), child_dentry, mode);
2678 ret = dget(child_dentry);
2680 done_path_create(&path, child_dentry);
2694 struct dentry *child_dentry = NULL;
2710 child_dentry = kern_path_create(AT_FDCWD, create_abs_path, &path, 0);
2712 if (IS_ERR(child_dentry)) {
2713 ret = child_dentry;
2716 hmdfs_mark_drop_flag(device_id, child_dentry->d_parent);
2717 err = vfs_create(&nop_mnt_idmap, d_inode(path.dentry), child_dentry, mode, want_excl);
2723 ret = dget(child_dentry);
2725 done_path_create(&path, child_dentry);
2737 struct dentry *child_dentry = NULL;
2749 child_dentry = lookup_one_len(rmdir_name, path.dentry,
2751 if (IS_ERR(child_dentry)) {
2752 err = PTR_ERR(child_dentry);
2756 if (d_is_negative(child_dentry)) {
2758 dput(child_dentry);
2763 err = vfs_rmdir(&nop_mnt_idmap, dir, child_dentry);
2766 dput(child_dentry);