Home
last modified time | relevance | path

Searched refs:new_dir (Results 1 – 25 of 69) sorted by relevance

123

/Linux-v5.10/fs/nfs/
Dunlink.c262 struct inode *new_dir = data->new_dir; in nfs_async_rename_done() local
266 new_dir, data->new_dentry, task->tk_status); in nfs_async_rename_done()
267 if (!NFS_PROTO(old_dir)->rename_done(task, old_dir, new_dir)) { in nfs_async_rename_done()
294 if (data->new_dir != data->old_dir) { in nfs_async_rename_release()
295 spin_lock(&data->new_dir->i_lock); in nfs_async_rename_release()
296 nfs_force_lookup_revalidate(data->new_dir); in nfs_async_rename_release()
297 spin_unlock(&data->new_dir->i_lock); in nfs_async_rename_release()
304 iput(data->new_dir); in nfs_async_rename_release()
333 nfs_async_rename(struct inode *old_dir, struct inode *new_dir, in nfs_async_rename() argument
361 data->new_dir = new_dir; in nfs_async_rename()
[all …]
Dnfstrace.h745 const struct inode *new_dir,
749 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
754 __field(u64, new_dir)
762 __entry->new_dir = NFS_FILEID(new_dir);
773 (unsigned long long)__entry->new_dir,
782 const struct inode *new_dir, \
785 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
791 const struct inode *new_dir,
796 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry, error),
803 __field(u64, new_dir)
[all …]
/Linux-v5.10/fs/f2fs/
Dnamei.c897 struct inode *new_dir, struct dentry *new_dentry, in f2fs_rename() argument
916 if (is_inode_flag_set(new_dir, FI_PROJ_INHERIT) && in f2fs_rename()
917 (!projid_eq(F2FS_I(new_dir)->i_projid, in f2fs_rename()
929 if (old_dir == new_dir && !new_inode) { in f2fs_rename()
945 err = dquot_initialize(new_dir); in f2fs_rename()
979 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename()
995 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_rename()
1021 f2fs_i_links_write(new_dir, true); in f2fs_rename()
1029 f2fs_i_pino_write(old_inode, new_dir->i_ino); in f2fs_rename()
1048 if (old_dir != new_dir && !whiteout) in f2fs_rename()
[all …]
/Linux-v5.10/fs/affs/
Dnamei.c403 struct inode *new_dir, struct dentry *new_dentry) in affs_rename() argument
437 affs_lock_dir(new_dir); in affs_rename()
438 retval = affs_insert_hash(new_dir, bh); in affs_rename()
439 affs_unlock_dir(new_dir); in affs_rename()
443 mark_buffer_dirty_inode(bh, retval ? old_dir : new_dir); in affs_rename()
450 struct inode *new_dir, struct dentry *new_dentry) in affs_xrename() argument
474 affs_lock_dir(new_dir); in affs_xrename()
475 retval = affs_remove_hash(new_dir, bh_new); in affs_xrename()
476 affs_unlock_dir(new_dir); in affs_xrename()
483 affs_lock_dir(new_dir); in affs_xrename()
[all …]
/Linux-v5.10/fs/ubifs/
Ddir.c1240 struct inode *new_dir, struct dentry *new_dentry, in do_rename() argument
1249 int err, release, sync = 0, move = (new_dir != old_dir); in do_rename()
1271 new_dentry, new_dir->i_ino, flags); in do_rename()
1291 err = fscrypt_setup_filename(new_dir, &new_dentry->d_name, 0, &new_nm); in do_rename()
1336 lock_4_inodes(old_dir, new_dir, new_inode, whiteout); in do_rename()
1358 inc_nlink(new_dir); in do_rename()
1373 new_dir->i_mtime = new_dir->i_ctime = time; in do_rename()
1392 new_dir->i_size += new_sz; in do_rename()
1393 ubifs_inode(new_dir)->ui_size = new_dir->i_size; in do_rename()
1402 sync = IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir); in do_rename()
[all …]
/Linux-v5.10/fs/fat/
Dnamei_msdos.c429 struct inode *new_dir, unsigned char *new_name, in do_msdos_rename() argument
451 update_dotdot = (is_dir && old_dir != new_dir); in do_msdos_rename()
460 err = fat_scan(new_dir, new_name, &sinfo); in do_msdos_rename()
503 err = msdos_add_entry(new_dir, new_name, is_dir, is_hid, 0, in do_msdos_rename()
509 inode_inc_iversion(new_dir); in do_msdos_rename()
517 if (IS_DIRSYNC(new_dir)) { in do_msdos_rename()
525 fat_set_start(dotdot_de, MSDOS_I(new_dir)->i_logstart); in do_msdos_rename()
527 if (IS_DIRSYNC(new_dir)) { in do_msdos_rename()
534 inc_nlink(new_dir); in do_msdos_rename()
582 int err2 = fat_remove_entries(new_dir, &sinfo); in do_msdos_rename()
[all …]
Dnamei_vfat.c896 struct inode *new_dir, struct dentry *new_dentry, in vfat_rename() argument
920 update_dotdot = (is_dir && old_dir != new_dir); in vfat_rename()
938 err = vfat_add_entry(new_dir, &new_dentry->d_name, is_dir, 0, in vfat_rename()
944 inode_inc_iversion(new_dir); in vfat_rename()
948 if (IS_DIRSYNC(new_dir)) { in vfat_rename()
956 fat_set_start(dotdot_de, MSDOS_I(new_dir)->i_logstart); in vfat_rename()
958 if (IS_DIRSYNC(new_dir)) { in vfat_rename()
965 inc_nlink(new_dir); in vfat_rename()
1014 int err2 = fat_remove_entries(new_dir, &sinfo); in vfat_rename()
1020 fat_fs_error(new_dir->i_sb, in vfat_rename()
/Linux-v5.10/fs/jfs/
Dnamei.c1062 struct inode *new_dir, struct dentry *new_dentry, in jfs_rename() argument
1090 rc = dquot_initialize(new_dir); in jfs_rename()
1115 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, JFS_LOOKUP); in jfs_rename()
1147 tid = txBegin(new_dir->i_sb, 0); in jfs_rename()
1155 mutex_lock_nested(&JFS_IP(new_dir)->commit_mutex, COMMIT_MUTEX_PARENT); in jfs_rename()
1157 if (old_dir != new_dir) in jfs_rename()
1168 rc = dtModify(tid, new_dir, &new_dname, &ino, in jfs_rename()
1177 if (old_dir != new_dir) in jfs_rename()
1180 mutex_unlock(&JFS_IP(new_dir)->commit_mutex); in jfs_rename()
1209 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, in jfs_rename()
[all …]
/Linux-v5.10/fs/ufs/
Dnamei.c244 struct inode *new_dir, struct dentry *new_dentry, in ufs_rename() argument
278 new_de = ufs_find_entry(new_dir, &new_dentry->d_name, &new_page); in ufs_rename()
281 ufs_set_link(new_dir, new_de, new_page, old_inode, 1); in ufs_rename()
291 inode_inc_link_count(new_dir); in ufs_rename()
304 if (old_dir != new_dir) in ufs_rename()
305 ufs_set_link(old_inode, dir_de, dir_page, new_dir, 0); in ufs_rename()
/Linux-v5.10/fs/debugfs/
Dinode.c750 struct dentry *new_dir, const char *new_name) in debugfs_rename() argument
758 if (IS_ERR(new_dir)) in debugfs_rename()
759 return new_dir; in debugfs_rename()
763 trap = lock_rename(new_dir, old_dir); in debugfs_rename()
765 if (d_really_is_negative(old_dir) || d_really_is_negative(new_dir)) in debugfs_rename()
771 dentry = lookup_one_len(new_name, new_dir, strlen(new_name)); in debugfs_rename()
778 error = simple_rename(d_inode(old_dir), old_dentry, d_inode(new_dir), in debugfs_rename()
785 fsnotify_move(d_inode(old_dir), d_inode(new_dir), &old_name.name, in debugfs_rename()
789 unlock_rename(new_dir, old_dir); in debugfs_rename()
795 unlock_rename(new_dir, old_dir); in debugfs_rename()
/Linux-v5.10/fs/crypto/
Dhooks.c75 struct inode *new_dir, struct dentry *new_dentry, in __fscrypt_prepare_rename() argument
84 err = fscrypt_require_key(new_dir); in __fscrypt_prepare_rename()
92 if (old_dir != new_dir) { in __fscrypt_prepare_rename()
93 if (IS_ENCRYPTED(new_dir) && in __fscrypt_prepare_rename()
94 !fscrypt_has_permitted_context(new_dir, in __fscrypt_prepare_rename()
/Linux-v5.10/fs/ext2/
Dnamei.c319 struct inode * new_dir, struct dentry * new_dentry, in ext2_rename() argument
337 err = dquot_initialize(new_dir); in ext2_rename()
362 new_de = ext2_find_entry(new_dir, &new_dentry->d_name, &new_page); in ext2_rename()
367 ext2_set_link(new_dir, new_de, new_page, old_inode, 1); in ext2_rename()
377 inode_inc_link_count(new_dir); in ext2_rename()
390 if (old_dir != new_dir) in ext2_rename()
391 ext2_set_link(old_inode, dir_de, dir_page, new_dir, 0); in ext2_rename()
/Linux-v5.10/fs/hpfs/
Dnamei.c511 struct inode *new_dir, struct dentry *new_dentry, in hpfs_rename() argument
556 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename()
564 hpfs_error(new_dir->i_sb, "hpfs_rename: could not find dirent"); in hpfs_rename()
572 if (new_dir == old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
574 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename()
575 if (r == -1) hpfs_error(new_dir->i_sb, "hpfs_rename: dirent already exists!"); in hpfs_rename()
577 if (new_dir != old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
581 if (new_dir == old_dir) in hpfs_rename()
595 hpfs_i(i)->i_parent_dir = new_dir->i_ino; in hpfs_rename()
597 inc_nlink(new_dir); in hpfs_rename()
[all …]
/Linux-v5.10/include/linux/
Dfsnotify.h129 static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, in fsnotify_move() argument
140 if (old_dir == new_dir) in fsnotify_move()
149 fsnotify_name(new_dir, new_dir_mask, source, new_name, fs_cookie); in fsnotify_move()
154 audit_inode_child(new_dir, moved, AUDIT_TYPE_CHILD_CREATE); in fsnotify_move()
Dfscrypt.h212 struct inode *new_dir, struct dentry *new_dentry,
492 struct inode *new_dir, in __fscrypt_prepare_rename() argument
722 struct inode *new_dir, in fscrypt_prepare_rename() argument
726 if (IS_ENCRYPTED(old_dir) || IS_ENCRYPTED(new_dir)) in fscrypt_prepare_rename()
728 new_dir, new_dentry, flags); in fscrypt_prepare_rename()
/Linux-v5.10/fs/nilfs2/
Dnamei.c342 struct inode *new_dir, struct dentry *new_dentry, in nilfs_rename() argument
382 new_de = nilfs_find_entry(new_dir, &new_dentry->d_name, &new_page); in nilfs_rename()
385 nilfs_set_link(new_dir, new_de, new_page, old_inode); in nilfs_rename()
386 nilfs_mark_inode_dirty(new_dir); in nilfs_rename()
397 inc_nlink(new_dir); in nilfs_rename()
398 nilfs_mark_inode_dirty(new_dir); in nilfs_rename()
411 nilfs_set_link(old_inode, dir_de, dir_page, new_dir); in nilfs_rename()
/Linux-v5.10/fs/exfat/
Dnamei.c1322 struct inode *new_dir, struct dentry *new_dentry, in exfat_rename() argument
1342 err = __exfat_rename(old_dir, EXFAT_I(old_inode), new_dir, new_dentry); in exfat_rename()
1346 inode_inc_iversion(new_dir); in exfat_rename()
1347 new_dir->i_ctime = new_dir->i_mtime = new_dir->i_atime = in exfat_rename()
1348 EXFAT_I(new_dir)->i_crtime = current_time(new_dir); in exfat_rename()
1349 exfat_truncate_atime(&new_dir->i_atime); in exfat_rename()
1350 if (IS_DIRSYNC(new_dir)) in exfat_rename()
1351 exfat_sync_inode(new_dir); in exfat_rename()
1353 mark_inode_dirty(new_dir); in exfat_rename()
1359 if (IS_DIRSYNC(new_dir)) in exfat_rename()
[all …]
/Linux-v5.10/fs/ocfs2/
Dnamei.c1200 struct inode *new_dir, in ocfs2_rename() argument
1233 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1242 status = dquot_initialize(new_dir); in ocfs2_rename()
1266 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1276 status = ocfs2_check_if_ancestor(osb, new_dir->i_ino, in ocfs2_rename()
1285 (unsigned long long)new_dir->i_ino); in ocfs2_rename()
1292 &new_dir_bh, new_dir, 1); in ocfs2_rename()
1299 if (!new_dir->i_nlink) { in ocfs2_rename()
1355 if (!new_inode && new_dir != old_dir && in ocfs2_rename()
1356 new_dir->i_nlink >= ocfs2_link_max(osb)) { in ocfs2_rename()
[all …]
Ddcache.c443 struct inode *old_dir, struct inode *new_dir) in ocfs2_dentry_move() argument
455 if (old_dir == new_dir) in ocfs2_dentry_move()
461 ret = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(new_dir)->ip_blkno); in ocfs2_dentry_move()
/Linux-v5.10/fs/hfs/
Ddir.c283 struct inode *new_dir, struct dentry *new_dentry, in hfs_rename() argument
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()
/Linux-v5.10/fs/sysv/
Dnamei.c190 struct inode * new_dir, struct dentry * new_dentry, in sysv_rename() argument
237 inode_inc_link_count(new_dir); in sysv_rename()
244 sysv_set_link(dir_de, dir_page, new_dir); in sysv_rename()
/Linux-v5.10/fs/minix/
Dnamei.c185 struct inode * new_dir, struct dentry *new_dentry, in minix_rename() argument
232 inode_inc_link_count(new_dir); in minix_rename()
239 minix_set_link(dir_de, dir_page, new_dir); in minix_rename()
/Linux-v5.10/fs/reiserfs/
Dnamei.c1308 struct inode *new_dir, struct dentry *new_dentry, in reiserfs_rename() argument
1344 retval = dquot_initialize(new_dir); in reiserfs_rename()
1415 reiserfs_add_entry(&th, new_dir, new_dentry->d_name.name, in reiserfs_rename()
1429 reiserfs_update_inode_transaction(new_dir); in reiserfs_rename()
1446 search_by_entry_key(new_dir->i_sb, &old_de.de_entry_key, in reiserfs_rename()
1462 reiserfs_find_entry(new_dir, new_dentry->d_name.name, in reiserfs_rename()
1485 search_by_entry_key(new_dir->i_sb, in reiserfs_rename()
1575 new_dir->i_ctime = new_dir->i_mtime = ctime; in reiserfs_rename()
1595 set_ino_in_dir_entry(&dot_dot_de, INODE_PKEY(new_dir)); in reiserfs_rename()
1603 INC_DIR_INODE_NLINK(new_dir); in reiserfs_rename()
[all …]
/Linux-v5.10/fs/coda/
Ddir.c295 struct inode *new_dir, struct dentry *new_dentry, in coda_rename() argument
308 coda_i2f(new_dir), old_length, new_length, in coda_rename()
314 coda_dir_inc_nlink(new_dir); in coda_rename()
317 coda_dir_update_mtime(new_dir); in coda_rename()
321 coda_flag_inode(new_dir, C_VATTR); in coda_rename()
/Linux-v5.10/fs/orangefs/
Dnamei.c377 struct inode *new_dir, in orangefs_rename() argument
394 iattr.ia_mtime = iattr.ia_ctime = current_time(new_dir); in orangefs_rename()
395 __orangefs_setattr(new_dir, &iattr); in orangefs_rename()
402 new_op->upcall.req.rename.new_parent_refn = ORANGEFS_I(new_dir)->refn; in orangefs_rename()

123