Home
last modified time | relevance | path

Searched refs:new_dentry (Results 1 - 25 of 157) sorted by relevance

1234567

/kernel/linux/linux-5.10/fs/affs/
H A Dnamei.c403 struct inode *new_dir, struct dentry *new_dentry) in affs_rename()
409 retval = affs_check_name(new_dentry->d_name.name, in affs_rename()
410 new_dentry->d_name.len, in affs_rename()
417 if (d_really_is_positive(new_dentry)) { in affs_rename()
418 retval = affs_remove_header(new_dentry); in affs_rename()
435 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry); in affs_rename()
450 struct inode *new_dir, struct dentry *new_dentry) in affs_xrename()
462 bh_new = affs_bread(sb, d_inode(new_dentry)->i_ino); in affs_xrename()
483 affs_copy_name(AFFS_TAIL(sb, bh_old)->name, new_dentry); in affs_xrename()
504 struct inode *new_dir, struct dentry *new_dentry, in affs_rename2()
402 affs_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) affs_rename() argument
449 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) affs_xrename() argument
503 affs_rename2(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) affs_rename2() argument
[all...]
/kernel/linux/linux-6.6/fs/affs/
H A Dnamei.c406 struct inode *new_dir, struct dentry *new_dentry) in affs_rename()
412 retval = affs_check_name(new_dentry->d_name.name, in affs_rename()
413 new_dentry->d_name.len, in affs_rename()
420 if (d_really_is_positive(new_dentry)) { in affs_rename()
421 retval = affs_remove_header(new_dentry); in affs_rename()
438 affs_copy_name(AFFS_TAIL(sb, bh)->name, new_dentry); in affs_rename()
453 struct inode *new_dir, struct dentry *new_dentry) in affs_xrename()
465 bh_new = affs_bread(sb, d_inode(new_dentry)->i_ino); in affs_xrename()
486 affs_copy_name(AFFS_TAIL(sb, bh_old)->name, new_dentry); in affs_xrename()
508 struct dentry *new_dentry, unsigne in affs_rename2()
405 affs_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) affs_rename() argument
452 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) affs_xrename() argument
506 affs_rename2(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) affs_rename2() argument
[all...]
/kernel/linux/linux-5.10/fs/
H A Dinit.c168 struct dentry *new_dentry; in init_link() local
176 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
177 error = PTR_ERR(new_dentry); in init_link()
178 if (IS_ERR(new_dentry)) in init_link()
187 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
190 error = vfs_link(old_path.dentry, new_path.dentry->d_inode, new_dentry, in init_link()
193 done_path_create(&new_path, new_dentry); in init_link()
/kernel/linux/linux-6.6/fs/
H A Dinit.c168 struct dentry *new_dentry; in init_link() local
177 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in init_link()
178 error = PTR_ERR(new_dentry); in init_link()
179 if (IS_ERR(new_dentry)) in init_link()
189 error = security_path_link(old_path.dentry, &new_path, new_dentry); in init_link()
193 new_dentry, NULL); in init_link()
195 done_path_create(&new_path, new_dentry); in init_link()
/kernel/linux/linux-6.6/fs/ntfs3/
H A Dnamei.c253 struct dentry *new_dentry, u32 flags) in ntfs_rename()
262 struct inode *new_inode = d_inode(new_dentry); in ntfs_rename()
269 * [2048-3072) - new name (new_dentry->d_name) in ntfs_rename()
282 is_same = dentry->d_name.len == new_dentry->d_name.len && in ntfs_rename()
283 !memcmp(dentry->d_name.name, new_dentry->d_name.name, in ntfs_rename()
298 dget(new_dentry); in ntfs_rename()
300 err = ntfs_unlink_inode(new_dir, new_dentry); in ntfs_rename()
302 dput(new_dentry); in ntfs_rename()
321 /* Translate new_dentry->d_name into unicode form. */ in ntfs_rename()
323 err = fill_name_de(sbi, new_de, &new_dentry in ntfs_rename()
251 ntfs_rename(struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, struct inode *new_dir, struct dentry *new_dentry, u32 flags) ntfs_rename() argument
[all...]
/kernel/linux/linux-6.6/security/landlock/
H A Dfs.c765 * @new_dentry: Destination file or directory.
815 struct dentry *const new_dentry, in current_check_refer_path()
833 if (unlikely(d_is_negative(new_dentry))) in current_check_refer_path()
836 get_mode_access(d_backing_inode(new_dentry)->i_mode); in current_check_refer_path()
844 access_request_parent2 |= maybe_remove(new_dentry); in current_check_refer_path()
870 /* new_dir->dentry is equal to new_dentry->d_parent */ in current_check_refer_path()
889 exchange ? new_dentry : NULL)) in current_check_refer_path()
1104 struct dentry *const new_dentry) in hook_path_link()
1106 return current_check_refer_path(old_dentry, new_dir, new_dentry, false, in hook_path_link()
1113 struct dentry *const new_dentry, in hook_path_rename()
813 current_check_refer_path(struct dentry *const old_dentry, const struct path *const new_dir, struct dentry *const new_dentry, const bool removable, const bool exchange) current_check_refer_path() argument
1102 hook_path_link(struct dentry *const old_dentry, const struct path *const new_dir, struct dentry *const new_dentry) hook_path_link() argument
1110 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) hook_path_rename() argument
[all...]
/kernel/linux/linux-5.10/fs/sysv/
H A Dnamei.c190 struct inode * new_dir, struct dentry * new_dentry, in sysv_rename()
194 struct inode * new_inode = d_inode(new_dentry); in sysv_rename()
224 new_de = sysv_find_entry(new_dentry, &new_page); in sysv_rename()
233 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
189 sysv_rename(struct inode * old_dir, struct dentry * old_dentry, struct inode * new_dir, struct dentry * new_dentry, unsigned int flags) sysv_rename() argument
/kernel/linux/linux-5.10/fs/minix/
H A Dnamei.c185 struct inode * new_dir, struct dentry *new_dentry, in minix_rename()
189 struct inode * new_inode = d_inode(new_dentry); in minix_rename()
219 new_de = minix_find_entry(new_dentry, &new_page); in minix_rename()
228 err = minix_add_link(new_dentry, old_inode); in minix_rename()
184 minix_rename(struct inode * old_dir, struct dentry *old_dentry, struct inode * new_dir, struct dentry *new_dentry, unsigned int flags) minix_rename() argument
/kernel/linux/linux-6.6/fs/sysv/
H A Dnamei.c193 struct dentry *new_dentry, unsigned int flags) in sysv_rename()
196 struct inode * new_inode = d_inode(new_dentry); in sysv_rename()
226 new_de = sysv_find_entry(new_dentry, &new_page); in sysv_rename()
238 err = sysv_add_link(new_dentry, old_inode); in sysv_rename()
191 sysv_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) sysv_rename() argument
/kernel/linux/linux-5.10/fs/hfs/
H A Ddir.c283 struct inode *new_dir, struct dentry *new_dentry, in hfs_rename()
292 if (d_really_is_positive(new_dentry)) { in hfs_rename()
293 res = hfs_remove(new_dir, new_dentry); in hfs_rename()
300 new_dir, &new_dentry->d_name); in hfs_rename()
304 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
282 hfs_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) hfs_rename() argument
/kernel/linux/linux-6.6/fs/hfs/
H A Ddir.c285 struct dentry *new_dentry, unsigned int flags) in hfs_rename()
293 if (d_really_is_positive(new_dentry)) { in hfs_rename()
294 res = hfs_remove(new_dir, new_dentry); in hfs_rename()
301 new_dir, &new_dentry->d_name); in hfs_rename()
305 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
283 hfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) hfs_rename() argument
/kernel/linux/linux-5.10/fs/orangefs/
H A Dnamei.c378 struct dentry *new_dentry, in orangefs_rename()
390 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
408 new_dentry->d_name.name, in orangefs_rename()
419 if (new_dentry->d_inode) in orangefs_rename()
420 new_dentry->d_inode->i_ctime = current_time(new_dentry->d_inode); in orangefs_rename()
375 orangefs_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) orangefs_rename() argument
/kernel/linux/linux-5.10/fs/nfs/
H A Dunlink.c266 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done()
302 dput(data->new_dentry); in nfs_async_rename_release()
327 * @new_dentry: dentry to which the old_dentry should be renamed
334 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename()
364 data->new_dentry = dget(new_dentry); in nfs_async_rename()
373 data->args.new_name = &new_dentry->d_name; in nfs_async_rename()
381 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename()
333 nfs_async_rename(struct inode *old_dir, struct inode *new_dir, struct dentry *old_dentry, struct dentry *new_dentry, void (*complete)(struct rpc_task *, struct nfs_renamedata *)) nfs_async_rename() argument
/kernel/linux/linux-6.6/fs/nfs/
H A Dunlink.c271 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done()
307 dput(data->new_dentry); in nfs_async_rename_release()
332 * @new_dentry: dentry to which the old_dentry should be renamed
339 struct dentry *old_dentry, struct dentry *new_dentry, in nfs_async_rename()
374 data->new_dentry = dget(new_dentry); in nfs_async_rename()
383 data->args.new_name = &new_dentry->d_name; in nfs_async_rename()
391 NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); in nfs_async_rename()
338 nfs_async_rename(struct inode *old_dir, struct inode *new_dir, struct dentry *old_dentry, struct dentry *new_dentry, void (*complete)(struct rpc_task *, struct nfs_renamedata *)) nfs_async_rename() argument
H A Ddir.c2620 struct dentry *new_dentry = data->new_dentry; in nfs_unblock_rename() local
2622 new_dentry->d_fsdata = NULL; in nfs_unblock_rename()
2623 wake_up_var(&new_dentry->d_fsdata); in nfs_unblock_rename()
2652 struct dentry *new_dentry, unsigned int flags) in nfs_rename()
2655 struct inode *new_inode = d_inode(new_dentry); in nfs_rename()
2665 old_dentry, new_dentry, in nfs_rename()
2666 d_count(new_dentry)); in nfs_rename()
2668 trace_nfs_rename_enter(old_dir, old_dentry, new_dir, new_dentry); in nfs_rename()
2682 if (WARN_ON(new_dentry in nfs_rename()
2650 nfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) nfs_rename() argument
[all...]
/kernel/linux/linux-5.10/fs/hmdfs/
H A Dinode_remote.c755 struct dentry *new_dentry) in rename_in_cache_file()
761 new_item = hmdfs_find_cache_item(dev_id, new_dentry->d_parent); in rename_in_cache_file()
763 hmdfs_rename_dentry(old_dentry, new_dentry, old_item->filp, in rename_in_cache_file()
780 struct inode *new_dir, struct dentry *new_dentry, in hmdfs_rename_remote()
787 const char *new_dentry_d_name = new_dentry->d_name.name; in hmdfs_rename_remote()
792 trace_hmdfs_rename_remote(old_dir, old_dentry, new_dir, new_dentry, in hmdfs_rename_remote()
799 hmdfs_file_type(new_dentry->d_name.name) != HMDFS_TYPE_COMMON) { in hmdfs_rename_remote()
808 if (hmdfs_d(old_dentry)->device_id != hmdfs_d(new_dentry)->device_id) in hmdfs_rename_remote()
814 hmdfs_get_dentry_relative_path(new_dentry->d_parent); in hmdfs_rename_remote()
828 new_dentry); in hmdfs_rename_remote()
754 rename_in_cache_file(uint64_t dev_id, struct dentry *old_dentry, struct dentry *new_dentry) rename_in_cache_file() argument
779 hmdfs_rename_remote(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) hmdfs_rename_remote() argument
[all...]
/kernel/linux/linux-5.10/fs/jffs2/
H A Ddir.c760 struct inode *new_dir_i, struct dentry *new_dentry, in jffs2_rename()
777 if (d_really_is_positive(new_dentry)) { in jffs2_rename()
778 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry)); in jffs2_rename()
779 if (d_is_dir(new_dentry)) { in jffs2_rename()
807 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename()
814 if (d_is_dir(new_dentry)) in jffs2_rename()
815 clear_nlink(d_inode(new_dentry)); in jffs2_rename()
817 drop_nlink(d_inode(new_dentry)); in jffs2_rename()
822 if (d_is_dir(new_dentry)) in jffs2_rename()
759 jffs2_rename(struct inode *old_dir_i, struct dentry *old_dentry, struct inode *new_dir_i, struct dentry *new_dentry, unsigned int flags) jffs2_rename() argument
[all...]
/kernel/linux/linux-6.6/fs/jffs2/
H A Ddir.c771 struct inode *new_dir_i, struct dentry *new_dentry, in jffs2_rename()
788 if (d_really_is_positive(new_dentry)) { in jffs2_rename()
789 victim_f = JFFS2_INODE_INFO(d_inode(new_dentry)); in jffs2_rename()
790 if (d_is_dir(new_dentry)) { in jffs2_rename()
818 new_dentry->d_name.name, new_dentry->d_name.len, now); in jffs2_rename()
825 if (d_is_dir(new_dentry)) in jffs2_rename()
826 clear_nlink(d_inode(new_dentry)); in jffs2_rename()
828 drop_nlink(d_inode(new_dentry)); in jffs2_rename()
833 if (d_is_dir(new_dentry)) in jffs2_rename()
769 jffs2_rename(struct mnt_idmap *idmap, struct inode *old_dir_i, struct dentry *old_dentry, struct inode *new_dir_i, struct dentry *new_dentry, unsigned int flags) jffs2_rename() argument
[all...]
/kernel/linux/linux-6.6/fs/hmdfs/
H A Dinode_remote.c755 struct dentry *new_dentry) in rename_in_cache_file()
761 new_item = hmdfs_find_cache_item(dev_id, new_dentry->d_parent); in rename_in_cache_file()
763 hmdfs_rename_dentry(old_dentry, new_dentry, old_item->filp, in rename_in_cache_file()
780 struct inode *new_dir, struct dentry *new_dentry, in hmdfs_rename_remote()
787 const char *new_dentry_d_name = new_dentry->d_name.name; in hmdfs_rename_remote()
792 trace_hmdfs_rename_remote(old_dir, old_dentry, new_dir, new_dentry, in hmdfs_rename_remote()
799 hmdfs_file_type(new_dentry->d_name.name) != HMDFS_TYPE_COMMON) { in hmdfs_rename_remote()
808 if (hmdfs_d(old_dentry)->device_id != hmdfs_d(new_dentry)->device_id) in hmdfs_rename_remote()
814 hmdfs_get_dentry_relative_path(new_dentry->d_parent); in hmdfs_rename_remote()
828 new_dentry); in hmdfs_rename_remote()
754 rename_in_cache_file(uint64_t dev_id, struct dentry *old_dentry, struct dentry *new_dentry) rename_in_cache_file() argument
779 hmdfs_rename_remote(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) hmdfs_rename_remote() argument
[all...]
H A Dhmdfs_dentryfile.c1093 struct dentry *new_dentry = NULL; in hmdfs_linkat() local
1097 new_dentry = kern_path_create(AT_FDCWD, newname, &new_path, 0); in hmdfs_linkat()
1098 if (IS_ERR(new_dentry)) { in hmdfs_linkat()
1100 PTR_ERR(new_dentry)); in hmdfs_linkat()
1101 return PTR_ERR(new_dentry); in hmdfs_linkat()
1108 error = vfs_link(old_path->dentry, &nop_mnt_idmap, new_path.dentry->d_inode, new_dentry, in hmdfs_linkat()
1112 done_path_create(&new_path, new_dentry); in hmdfs_linkat()
1315 int hmdfs_rename_dentry(struct dentry *old_dentry, struct dentry *new_dentry, in hmdfs_rename_dentry() argument
1319 struct hmdfs_sb_info *sbi = hmdfs_sb(new_dentry->d_sb); in hmdfs_rename_dentry()
1325 hmdfs_delete_dentry(new_dentry, new_fil in hmdfs_rename_dentry()
2523 struct dentry *new_dentry = NULL; hmdfs_rename_bak() local
2785 struct dentry *new_dentry = NULL; hmdfs_root_rename() local
[all...]
/kernel/linux/linux-5.10/fs/coda/
H A Ddir.c295 struct inode *new_dir, struct dentry *new_dentry, in coda_rename()
299 const char *new_name = new_dentry->d_name.name; in coda_rename()
301 int new_length = new_dentry->d_name.len; in coda_rename()
311 if (d_really_is_positive(new_dentry)) { in coda_rename()
312 if (d_is_dir(new_dentry)) { in coda_rename()
318 coda_flag_inode(d_inode(new_dentry), C_VATTR); in coda_rename()
294 coda_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) coda_rename() argument
/kernel/linux/linux-6.6/fs/coda/
H A Ddir.c300 struct dentry *new_dentry, unsigned int flags) in coda_rename()
303 const char *new_name = new_dentry->d_name.name; in coda_rename()
305 int new_length = new_dentry->d_name.len; in coda_rename()
315 if (d_really_is_positive(new_dentry)) { in coda_rename()
316 if (d_is_dir(new_dentry)) { in coda_rename()
320 coda_flag_inode(d_inode(new_dentry), C_VATTR); in coda_rename()
298 coda_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) coda_rename() argument
/kernel/linux/linux-6.6/fs/orangefs/
H A Dnamei.c382 struct dentry *new_dentry, in orangefs_rename()
394 old_dentry, new_dentry, d_count(new_dentry)); in orangefs_rename()
412 new_dentry->d_name.name, in orangefs_rename()
423 if (new_dentry->d_inode) in orangefs_rename()
424 inode_set_ctime_current(d_inode(new_dentry)); in orangefs_rename()
378 orangefs_rename(struct mnt_idmap *idmap, struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) orangefs_rename() argument
/kernel/linux/linux-5.10/fs/afs/
H A Ddir.c41 struct inode *new_dir, struct dentry *new_dentry,
1788 struct dentry *new_dentry = op->dentry_2; in afs_rename_edit_dir() local
1812 afs_edit_dir_remove(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1815 afs_edit_dir_add(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1819 new_inode = d_inode(new_dentry); in afs_rename_edit_dir()
1838 d_move(old_dentry, new_dentry); in afs_rename_edit_dir()
1865 struct inode *new_dir, struct dentry *new_dentry, in afs_rename()
1887 new_dentry); in afs_rename()
1903 op->dentry_2 = new_dentry; in afs_rename()
1904 op->rename.new_negative = d_is_negative(new_dentry); in afs_rename()
1864 afs_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags) afs_rename() argument
[all...]
/kernel/linux/linux-6.6/fs/afs/
H A Ddir.c43 struct dentry *new_dentry, unsigned int flags);
1831 struct dentry *new_dentry = op->dentry_2; in afs_rename_edit_dir() local
1855 afs_edit_dir_remove(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1858 afs_edit_dir_add(new_dvnode, &new_dentry->d_name, in afs_rename_edit_dir()
1862 new_inode = d_inode(new_dentry); in afs_rename_edit_dir()
1881 d_move(old_dentry, new_dentry); in afs_rename_edit_dir()
1909 struct dentry *new_dentry, unsigned int flags) in afs_rename()
1930 new_dentry); in afs_rename()
1951 op->dentry_2 = new_dentry; in afs_rename()
1952 op->rename.new_negative = d_is_negative(new_dentry); in afs_rename()
1907 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) afs_rename() argument
[all...]

Completed in 29 milliseconds

1234567