Lines Matching refs:src_dent
690 static int ksmbd_validate_entry_in_use(struct dentry *src_dent) in ksmbd_validate_entry_in_use() argument
694 spin_lock(&src_dent->d_lock); in ksmbd_validate_entry_in_use()
695 list_for_each_entry(dst_dent, &src_dent->d_subdirs, d_child) { in ksmbd_validate_entry_in_use()
703 spin_unlock(&src_dent->d_lock); in ksmbd_validate_entry_in_use()
708 spin_unlock(&src_dent->d_lock); in ksmbd_validate_entry_in_use()
716 struct dentry *src_dent, in __ksmbd_vfs_rename() argument
726 err = ksmbd_validate_entry_in_use(src_dent); in __ksmbd_vfs_rename()
735 if (d_really_is_negative(src_dent)) in __ksmbd_vfs_rename()
737 if (src_dent == trap_dent) in __ksmbd_vfs_rename()
756 .old_dentry = src_dent, in __ksmbd_vfs_rename()
778 struct dentry *src_dent, *trap_dent, *src_child; in ksmbd_vfs_fp_rename() local
789 src_dent = fp->filp->f_path.dentry; in ksmbd_vfs_fp_rename()
801 dget(src_dent); in ksmbd_vfs_fp_rename()
804 src_child = lookup_one(user_ns, src_dent->d_name.name, src_dent_parent, in ksmbd_vfs_fp_rename()
805 src_dent->d_name.len); in ksmbd_vfs_fp_rename()
811 if (src_child != src_dent) { in ksmbd_vfs_fp_rename()
821 src_dent, in ksmbd_vfs_fp_rename()
827 dput(src_dent); in ksmbd_vfs_fp_rename()