Lines Matching defs:child_dentry
713 static struct hmdfs_dentry *hmdfs_in_level(struct dentry *child_dentry,
754 struct hmdfs_dentry *hmdfs_find_dentry(struct dentry *child_dentry,
768 de = hmdfs_in_level(child_dentry, level, ctx);
789 void update_dentry(struct hmdfs_dentry_group *d, struct dentry *child_dentry,
795 const struct qstr name = child_dentry->d_name;
801 gdi = hmdfs_sb == child_dentry->d_sb ? hmdfs_d(child_dentry) : NULL;
802 if (!gdi && S_ISLNK(d_inode(child_dentry)->i_mode)) {
803 ino = d_inode(child_dentry)->i_ino;
804 igen = d_inode(child_dentry)->i_generation;
821 else if (!gdi && S_ISLNK(d_inode(child_dentry)->i_mode))
822 de->i_mode = d_inode(child_dentry)->i_mode;
871 int create_dentry(struct dentry *child_dentry, struct inode *inode,
876 const struct qstr qstr = child_dentry->d_name;
935 update_dentry(dentry_blk, child_dentry, inode, sbi->sb, namehash,
962 int update_inode_to_dentry(struct dentry *child_dentry, struct inode *inode)
964 struct hmdfs_sb_info *sbi = d_inode(child_dentry)->i_sb->s_fs_info;
972 parent_dentry = child_dentry->d_parent;
984 hmdfs_init_dcache_lookup_ctx(&ctx, sbi, &child_dentry->d_name,
986 de = hmdfs_find_dentry(child_dentry, &ctx);
2577 struct dentry *child_dentry = NULL;
2591 child_dentry = lookup_one_len(unlink_name, path.dentry,
2593 if (IS_ERR(child_dentry)) {
2594 err = PTR_ERR(child_dentry);
2598 if (d_is_negative(child_dentry)) {
2600 dput(child_dentry);
2603 child_inode = d_inode(child_dentry);
2611 err = vfs_unlink(dir, child_dentry, NULL);
2618 hmdfs_rename_bak(child_dentry);
2624 dput(child_dentry);
2640 struct dentry *child_dentry = NULL;
2656 child_dentry = kern_path_create(AT_FDCWD, mkdir_abs_path,
2658 if (IS_ERR(child_dentry)) {
2659 ret = child_dentry;
2663 hmdfs_mark_drop_flag(device_id, child_dentry->d_parent);
2664 err = vfs_mkdir(d_inode(path.dentry), child_dentry, mode);
2670 ret = dget(child_dentry);
2672 done_path_create(&path, child_dentry);
2686 struct dentry *child_dentry = NULL;
2702 child_dentry = kern_path_create(AT_FDCWD, create_abs_path, &path, 0);
2704 if (IS_ERR(child_dentry)) {
2705 ret = child_dentry;
2708 hmdfs_mark_drop_flag(device_id, child_dentry->d_parent);
2709 err = vfs_create(d_inode(path.dentry), child_dentry, mode, want_excl);
2715 ret = dget(child_dentry);
2717 done_path_create(&path, child_dentry);
2729 struct dentry *child_dentry = NULL;
2741 child_dentry = lookup_one_len(rmdir_name, path.dentry,
2743 if (IS_ERR(child_dentry)) {
2744 err = PTR_ERR(child_dentry);
2748 if (d_is_negative(child_dentry)) {
2750 dput(child_dentry);
2755 err = vfs_rmdir(dir, child_dentry);
2758 dput(child_dentry);