Searched refs:old_dentry (Results 1 - 25 of 79) sorted by last modified time

1234

/linux-master/fs/9p/
H A Dvfs_inode_dotl.c680 * @old_dentry: dentry for file to link to
687 v9fs_vfs_link_dotl(struct dentry *old_dentry, struct inode *dir, argument
695 dir->i_ino, old_dentry, dentry);
702 oldfid = v9fs_fid_lookup(old_dentry);
722 fid = v9fs_fid_lookup(old_dentry);
726 v9fs_refresh_inode_dotl(fid, d_inode(old_dentry));
729 ihold(d_inode(old_dentry));
730 d_instantiate(dentry, d_inode(old_dentry));
H A Dvfs_inode.c823 * @old_dentry: old dentry
832 struct dentry *old_dentry, struct inode *new_dir,
848 old_inode = d_inode(old_dentry);
851 oldfid = v9fs_fid_lookup(old_dentry);
855 dfid = v9fs_parent_fid(old_dentry);
877 retval = p9_client_renameat(olddirfid, old_dentry->d_name.name,
885 if (old_dentry->d_parent != new_dentry->d_parent) {
917 d_move(old_dentry, new_dentry);
1233 * @old_dentry: dentry for file to link to
1240 v9fs_vfs_link(struct dentry *old_dentry, struc argument
831 v9fs_vfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
H A Dv9fs.h179 struct inode *old_dir, struct dentry *old_dentry,
/linux-master/fs/btrfs/
H A Dinode.c6632 static int btrfs_link(struct dentry *old_dentry, struct inode *dir, argument
6637 struct inode *inode = d_inode(old_dentry);
6701 btrfs_log_new_name(trans, old_dentry, NULL, 0, parent);
8802 struct dentry *old_dentry,
8812 struct inode *old_inode = old_dentry->d_inode;
8835 ret = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_fname);
8943 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
8945 if (old_dentry->d_parent != new_dentry->d_parent) {
8954 ret = btrfs_unlink_subvol(trans, BTRFS_I(old_dir), old_dentry);
8957 BTRFS_I(old_dentry
8801 btrfs_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
9053 btrfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
9289 btrfs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/smb/server/
H A Dvfs.c779 rd.old_dentry = old_child,
/linux-master/fs/bcachefs/
H A Dfs.c496 static int bch2_link(struct dentry *old_dentry, struct inode *vdir, argument
501 struct bch_inode_info *inode = to_bch_ei(old_dentry->d_inode);
/linux-master/mm/
H A Dshmem.c3346 static int shmem_link(struct dentry *old_dentry, struct inode *dir, argument
3349 struct inode *inode = d_inode(old_dentry);
3413 struct inode *old_dir, struct dentry *old_dentry)
3418 whiteout = d_alloc(old_dentry->d_parent, &old_dentry->d_name);
3446 struct inode *old_dir, struct dentry *old_dentry,
3450 struct inode *inode = d_inode(old_dentry);
3458 return simple_offset_rename_exchange(old_dir, old_dentry,
3465 error = shmem_whiteout(idmap, old_dir, old_dentry);
3470 simple_offset_remove(shmem_get_offset_ctx(old_dir), old_dentry); local
3412 shmem_whiteout(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry) argument
3445 shmem_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/ceph/
H A Dmds_client.c2982 struct dentry *old_dentry = NULL; local
3005 old_dentry = req->r_old_dentry;
3006 ret = set_request_path_attr(mdsc, NULL, old_dentry,
/linux-master/include/linux/
H A Dfs.h1879 * @old_dentry: source
1889 struct dentry *old_dentry; member in struct:renamedata
3295 void simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry,
3297 extern int simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry,
3344 struct dentry *old_dentry,
H A Dnfs_xdr.h1718 struct dentry *old_dentry; member in struct:nfs_renamedata
1770 struct dentry *old_dentry,
/linux-master/security/
H A Dsecurity.c1881 * @old_dentry: existing file
1889 int security_path_link(struct dentry *old_dentry, const struct path *new_dir, argument
1892 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry))))
1894 return call_int_hook(path_link, old_dentry, new_dir, new_dentry);
1900 * @old_dentry: the old file
1909 int security_path_rename(const struct path *old_dir, struct dentry *old_dentry, argument
1913 if (unlikely(IS_PRIVATE(d_backing_inode(old_dentry)) ||
1918 return call_int_hook(path_rename, old_dir, old_dentry, new_dir,
2025 * @old_dentry: existing file
2033 int security_inode_link(struct dentry *old_dentry, struc argument
2144 security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/
H A Dnamei.c4533 * @old_dentry: object to be linked
4557 int vfs_link(struct dentry *old_dentry, struct mnt_idmap *idmap, argument
4561 struct inode *inode = old_dentry->d_inode;
4592 error = security_inode_link(old_dentry, dir, new_dentry);
4605 error = dir->i_op->link(old_dentry, dir, new_dentry);
4763 struct dentry *old_dentry = rd->old_dentry; local
4767 bool is_dir = d_is_dir(old_dentry);
4768 struct inode *source = old_dentry->d_inode;
4778 error = may_delete(rd->old_mnt_idmap, old_dir, old_dentry, is_di
4923 struct dentry *old_dentry, *new_dentry; local
[all...]
/linux-master/fs/nfsd/
H A Dvfs.c1892 .old_dentry = odentry,
/linux-master/fs/ubifs/
H A Ddir.c720 static int ubifs_link(struct dentry *old_dentry, struct inode *dir, argument
724 struct inode *inode = d_inode(old_dentry);
743 err = fscrypt_prepare_link(old_dentry, dir, dentry);
1294 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, argument
1299 struct inode *old_inode = d_inode(old_dentry);
1326 old_dentry, old_inode->i_ino, old_dir->i_ino,
1345 err = fscrypt_setup_filename(old_dir, &old_dentry->d_name, 0, &old_nm);
1386 whiteout = create_whiteout(old_dir, old_dentry);
1417 /* Add the old_dentry size to the old_dir size. */
1427 simple_rename_timestamp(old_dir, old_dentry, new_di
1557 ubifs_xrename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
1621 ubifs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/kernfs/
H A Ddir.c1271 struct inode *old_dir, struct dentry *old_dentry,
1275 struct kernfs_node *kn = kernfs_dentry_node(old_dentry);
1270 kernfs_iop_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/exfat/
H A Dnamei.c1233 struct inode *old_dir, struct dentry *old_dentry,
1252 old_inode = old_dentry->d_inode;
1260 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
1232 exfat_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
/linux-master/fs/debugfs/
H A Dinode.c858 * @old_dentry: dentry of an object to be renamed.
866 * This function will return a pointer to old_dentry (which is updated to
873 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, argument
884 if (IS_ERR_OR_NULL(old_dentry))
885 return old_dentry;
892 if (d_really_is_negative(old_dentry) || old_dentry == trap ||
893 d_mountpoint(old_dentry))
900 take_dentry_name_snapshot(&old_name, old_dentry);
902 error = simple_rename(&nop_mnt_idmap, d_inode(old_dir), old_dentry,
911 NULL, old_dentry); local
[all...]
/linux-master/fs/f2fs/
H A Dnamei.c396 static int f2fs_link(struct dentry *old_dentry, struct inode *dir, argument
399 struct inode *inode = d_inode(old_dentry);
408 err = fscrypt_prepare_link(old_dentry, dir, dentry);
414 F2FS_I(old_dentry->d_inode)->i_projid)))
954 struct dentry *old_dentry, struct inode *new_dir,
958 struct inode *old_inode = d_inode(old_dentry);
976 F2FS_I(old_dentry->d_inode)->i_projid)))
996 err = f2fs_setup_filename(old_dir, &old_dentry->d_name,
1021 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page);
1105 err = f2fs_add_link(old_dentry, whiteou
953 f2fs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
1149 f2fs_cross_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
1314 f2fs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/afs/
H A Ddir.c42 struct dentry *old_dentry, struct inode *new_dir,
1844 struct dentry *old_dentry = op->dentry; local
1858 afs_edit_dir_remove(orig_dvnode, &old_dentry->d_name,
1895 d_move(old_dentry, new_dentry);
1922 struct dentry *old_dentry, struct inode *new_dir,
1933 if (old_dentry->d_flags & DCACHE_NFSFS_RENAMED)
1936 vnode = AFS_FS_I(d_inode(old_dentry));
1964 op->dentry = old_dentry;
2009 * d_revalidate may see old_dentry between the op having taken place
2012 * So drop the old_dentry fo
1921 afs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) argument
[all...]
/linux-master/fs/nfs/
H A Dnfs4proc.c4857 struct dentry *old_dentry,
4862 struct inode *old_inode = d_inode(old_dentry);
4870 res->server = NFS_SB(old_dentry->d_sb);
4894 nfs_d_prune_case_insensitive_aliases(d_inode(data->old_dentry));
4856 nfs4_proc_rename_setup(struct rpc_message *msg, struct dentry *old_dentry, struct dentry *new_dentry) argument
H A Dinternal.h649 struct dentry *old_dentry, struct dentry *new_dentry,
/linux-master/security/smack/
H A Dsmack_lsm.c1066 * @old_dentry: the existing object
1072 static int smack_inode_link(struct dentry *old_dentry, struct inode *dir, argument
1080 smk_ad_setfield_u_fs_path_dentry(&ad, old_dentry);
1082 isp = smk_of_inode(d_backing_inode(old_dentry));
1084 rc = smk_bu_inode(d_backing_inode(old_dentry), MAY_WRITE, rc);
1167 * @old_dentry: the old object
1177 struct dentry *old_dentry,
1186 smk_ad_setfield_u_fs_path_dentry(&ad, old_dentry);
1188 isp = smk_of_inode(d_backing_inode(old_dentry));
1190 rc = smk_bu_inode(d_backing_inode(old_dentry), MAY_READWRIT
1176 smack_inode_rename(struct inode *old_inode, struct dentry *old_dentry, struct inode *new_inode, struct dentry *new_dentry) argument
[all...]
/linux-master/security/selinux/
H A Dhooks.c1884 struct dentry *old_dentry,
1896 old_isec = backing_inode_security(old_dentry);
1897 old_is_dir = d_is_dir(old_dentry);
1902 ad.u.dentry = old_dentry;
3020 static int selinux_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry) argument
3022 return may_link(dir, old_dentry, MAY_LINK);
3050 static int selinux_inode_rename(struct inode *old_inode, struct dentry *old_dentry, argument
3053 return may_rename(old_inode, old_dentry, new_inode, new_dentry);
1883 may_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
/linux-master/security/landlock/
H A Dfs.c894 * @old_dentry: File or directory requested to be moved or linked.
941 * - -EXDEV if @old_dentry would inherit new access rights from @new_dir;
944 static int current_check_refer_path(struct dentry *const old_dentry, argument
960 if (unlikely(d_is_negative(old_dentry)))
971 get_mode_access(d_backing_inode(old_dentry)->i_mode);
973 access_request_parent1 |= maybe_remove(old_dentry);
978 if (old_dentry->d_parent == new_dir->dentry) {
1002 old_dentry->d_parent,
1012 * take into account the @old_dentry access rights aggregated with its
1018 old_dentry, access_request_parent
1232 hook_path_link(struct dentry *const old_dentry, const struct path *const new_dir, struct dentry *const new_dentry) argument
1240 hook_path_rename(const struct path *const old_dir, struct dentry *const old_dentry, const struct path *const new_dir, struct dentry *const new_dentry, const unsigned int flags) argument
[all...]
/linux-master/security/apparmor/
H A Dlsm.c363 static int apparmor_path_link(struct dentry *old_dentry, const struct path *new_dir, argument
369 if (!path_mediated_fs(old_dentry))
374 error = aa_path_link(current_cred(), label, old_dentry, new_dir,
381 static int apparmor_path_rename(const struct path *old_dir, struct dentry *old_dentry, argument
388 if (!path_mediated_fs(old_dentry))
398 .dentry = old_dentry };
402 .mode = d_backing_inode(old_dentry)->i_mode
404 vfsuid = i_uid_into_vfsuid(idmap, d_backing_inode(old_dentry));
411 vfsuid = i_uid_into_vfsuid(idmap, d_backing_inode(old_dentry));

Completed in 654 milliseconds

1234