Searched refs:old_dir (Results 1 - 25 of 75) sorted by relevance

123

/linux-master/fs/nfs/
H A Dunlink.c266 struct inode *old_dir = data->old_dir; local
270 trace_nfs_async_rename_done(old_dir, old_dentry,
272 if (!NFS_PROTO(old_dir)->rename_done(task, old_dir, new_dir)) {
288 struct super_block *sb = data->old_dir->i_sb;
296 spin_lock(&data->old_dir->i_lock);
297 nfs_force_lookup_revalidate(data->old_dir);
298 spin_unlock(&data->old_dir->i_lock);
299 if (data->new_dir != data->old_dir) {
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 *)) argument
[all...]
H A Dnfstrace.h802 const struct inode *old_dir,
808 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry),
812 __field(u64, old_dir)
819 __entry->dev = old_dir->i_sb->s_dev;
820 __entry->old_dir = NFS_FILEID(old_dir);
829 (unsigned long long)__entry->old_dir,
839 const struct inode *old_dir, \
844 TP_ARGS(old_dir, old_dentry, new_dir, new_dentry))
848 const struct inode *old_dir,
[all...]
/linux-master/fs/ocfs2/
H A Ddcache.h38 struct inode *old_dir, struct inode *new_dir);
H A Ddcache.c434 struct inode *old_dir, struct inode *new_dir)
437 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb);
446 if (old_dir == new_dir)
433 ocfs2_dentry_move(struct dentry *dentry, struct dentry *target, struct inode *old_dir, struct inode *new_dir) argument
H A Dnamei.c685 struct inode *old_dir = d_inode(old_dentry->d_parent); local
709 err = ocfs2_double_lock(osb, &old_dir_bh, old_dir,
735 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name,
828 ocfs2_double_unlock(old_dir, dir);
1199 struct inode *old_dir,
1219 u32 old_dir_nlink = old_dir->i_nlink;
1234 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry,
1238 status = dquot_initialize(old_dir);
1249 osb = OCFS2_SB(old_dir->i_sb);
1267 if (old_dir !
1198 ocfs2_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/fat/
H A Dnamei_msdos.c428 static int do_msdos_rename(struct inode *old_dir, unsigned char *old_name, argument
445 err = fat_scan(old_dir, old_name, &old_sinfo);
452 update_dotdot = (is_dir && old_dir != new_dir);
473 if (IS_DIRSYNC(old_dir)) {
482 inode_inc_iversion(old_dir);
483 fat_truncate_time(old_dir, NULL, S_CTIME|S_MTIME);
484 if (IS_DIRSYNC(old_dir))
485 (void)fat_sync_inode(old_dir);
487 mark_inode_dirty(old_dir);
533 drop_nlink(old_dir);
597 msdos_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 Dnamei_vfat.c931 static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry, argument
941 struct super_block *sb = old_dir->i_sb;
947 err = vfat_find(old_dir, &old_dentry->d_name, &old_sinfo);
951 if (old_dir != new_dir) {
958 ts = current_time(old_dir);
987 drop_nlink(old_dir);
992 err = fat_remove_entries(old_dir, &old_sinfo); /* and releases bh */
996 vfat_update_dir_metadata(old_dir, &ts);
1017 corrupt |= vfat_update_dotdot_de(old_dir, old_inode, dotdot_bh,
1060 static int vfat_rename_exchange(struct inode *old_dir, struc argument
1161 vfat_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/affs/
H A Dnamei.c405 affs_rename(struct inode *old_dir, struct dentry *old_dentry, argument
408 struct super_block *sb = old_dir->i_sb;
431 affs_lock_dir(old_dir);
432 retval = affs_remove_hash(old_dir, bh);
433 affs_unlock_dir(old_dir);
443 /* TODO: move it back to old_dir, if error? */
446 mark_buffer_dirty_inode(bh, retval ? old_dir : new_dir);
452 affs_xrename(struct inode *old_dir, struct dentry *old_dentry, argument
456 struct super_block *sb = old_dir->i_sb;
472 affs_lock_dir(old_dir);
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) argument
[all...]
/linux-master/fs/f2fs/
H A Dnamei.c953 static int f2fs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
957 struct f2fs_sb_info *sbi = F2FS_I_SB(old_dir);
981 * add a link in old_dir which can convert inline_dir.
987 if (old_dir == new_dir && !new_inode) {
988 err = f2fs_try_convert_inline_dir(old_dir, new_dentry);
996 err = f2fs_setup_filename(old_dir, &old_dentry->d_name,
1001 err = f2fs_create_whiteout(idmap, old_dir, &whiteout, &fname);
1006 err = f2fs_dquot_initialize(old_dir);
1021 old_entry = f2fs_find_entry(old_dir, &old_dentry->d_name, &old_page);
1028 if (old_is_dir && old_dir !
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/ubifs/
H A Ddir.c1294 static int do_rename(struct inode *old_dir, struct dentry *old_dentry, argument
1298 struct ubifs_info *c = old_dir->i_sb->s_fs_info;
1304 int err, release, sync = 0, move = (new_dir != old_dir);
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. */
1421 lock_4_inodes(old_dir, new_dir, new_inode, whiteout);
1427 simple_rename_timestamp(old_dir, old_dentry, new_dir, new_dentry);
1433 * @old_dir lose
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/reiserfs/
H A Dnamei.c1307 struct inode *old_dir, struct dentry *old_dentry,
1338 4 * REISERFS_QUOTA_TRANS_BLOCKS(old_dir->i_sb);
1340 retval = dquot_initialize(old_dir);
1355 reiserfs_write_lock(old_dir->i_sb);
1357 reiserfs_find_entry(old_dir, old_dentry->d_name.name,
1362 reiserfs_write_unlock(old_dir->i_sb);
1367 reiserfs_write_unlock(old_dir->i_sb);
1379 reiserfs_write_unlock(old_dir->i_sb);
1384 if (old_dir != new_dir) {
1396 reiserfs_write_unlock(old_dir
1306 reiserfs_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/jfs/
H A Dnamei.c1068 static int jfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
1094 rc = dquot_initialize(old_dir);
1113 rc = dtSearch(old_dir, &old_dname, &ino, &btstack, JFS_LOOKUP);
1160 * Here, the vfs has already taken i_mutex on both old_dir and new_dir.
1164 if (old_dir != new_dir)
1165 mutex_lock_nested(&JFS_IP(old_dir)->commit_mutex,
1184 if (old_dir != new_dir)
1185 mutex_unlock(&JFS_IP(old_dir)->commit_mutex);
1239 rc = dtDelete(tid, old_dir, &old_dname, &ino, JFS_REMOVE);
1247 drop_nlink(old_dir);
[all...]
/linux-master/fs/crypto/
H A Dhooks.c69 int __fscrypt_prepare_rename(struct inode *old_dir, struct dentry *old_dentry, argument
81 if (old_dir != new_dir) {
88 IS_ENCRYPTED(old_dir) &&
89 !fscrypt_has_permitted_context(old_dir,
/linux-master/fs/ufs/
H A Dnamei.c246 static int ufs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
261 old_de = ufs_find_entry(old_dir, &old_dentry->d_name, &old_page);
303 ufs_delete_entry(old_dir, old_de, old_page);
307 if (old_dir != new_dir)
313 inode_dec_link_count(old_dir);
/linux-master/fs/debugfs/
H A Dinode.c856 * @old_dir: a pointer to the parent dentry for the renamed object. This
873 struct dentry *debugfs_rename(struct dentry *old_dir, struct dentry *old_dentry, argument
880 if (IS_ERR(old_dir))
881 return old_dir;
887 trap = lock_rename(new_dir, old_dir);
889 if (d_really_is_negative(old_dir) || d_really_is_negative(new_dir))
902 error = simple_rename(&nop_mnt_idmap, d_inode(old_dir), old_dentry,
909 fsnotify_move(d_inode(old_dir), d_inode(new_dir), &old_name.name,
913 unlock_rename(new_dir, old_dir);
919 unlock_rename(new_dir, old_dir);
[all...]
/linux-master/fs/udf/
H A Dnamei.c761 static int udf_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
775 retval = udf_fiiter_find_entry(old_dir, &old_dentry->d_name, &oiter);
780 if (udf_get_lb_pblock(old_dir->i_sb, &tloc, 0) != old_inode->i_ino) {
793 if (is_dir && old_dir != new_dir) {
807 old_dir->i_ino) {
811 old_inode->i_ino, old_dir->i_ino,
855 retval = udf_fiiter_find_entry(old_dir, &old_dentry->d_name, &oiter);
857 udf_err(old_dir->i_sb,
859 old_dir->i_ino);
868 udf_add_fid_counter(old_dir
[all...]
/linux-master/fs/ext2/
H A Dnamei.c318 struct inode * old_dir, struct dentry * old_dentry,
334 err = dquot_initialize(old_dir);
342 old_de = ext2_find_entry(old_dir, &old_dentry->d_name, &old_folio);
346 if (old_is_dir && old_dir != new_dir) {
392 if (old_dir != new_dir)
396 inode_dec_link_count(old_dir);
317 ext2_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/bfs/
H A Ddir.c202 static int bfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
223 old_bh = bfs_find_entry(old_dir, &old_dentry->d_name, &old_de);
243 inode_set_mtime_to_ts(old_dir, inode_set_ctime_current(old_dir));
244 mark_inode_dirty(old_dir);
249 mark_buffer_dirty_inode(old_bh, old_dir);
/linux-master/fs/btrfs/
H A Dtree-log.h98 struct dentry *old_dentry, struct btrfs_inode *old_dir,
/linux-master/fs/hpfs/
H A Dnamei.c506 static int hpfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
541 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) {
551 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) {
568 if (new_dir == old_dir) hpfs_brelse4(&qbh);
573 if (new_dir != old_dir) hpfs_brelse4(&qbh);
577 if (new_dir == old_dir)
578 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, old_name, old_len, &dno, &qbh))) {
584 if ((r = hpfs_remove_dirent(old_dir, dn
[all...]
/linux-master/fs/nilfs2/
H A Dnamei.c345 struct inode *old_dir, struct dentry *old_dentry,
361 err = nilfs_transaction_begin(old_dir->i_sb, &ti, 1);
366 old_de = nilfs_find_entry(old_dir, &old_dentry->d_name, &old_folio);
418 drop_nlink(old_dir);
422 nilfs_mark_inode_dirty(old_dir);
425 err = nilfs_transaction_commit(old_dir->i_sb);
434 nilfs_transaction_abort(old_dir->i_sb);
344 nilfs_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/
H A Dlibfs.c350 * @old_dir: parent of dentry being moved
358 int simple_offset_rename_exchange(struct inode *old_dir, argument
363 struct offset_ctx *old_ctx = old_dir->i_op->get_offset_ctx(old_dir);
382 ret = simple_rename_exchange(old_dir, old_dentry, new_dir, new_dentry);
742 * @old_dir: old parent directory
751 void simple_rename_timestamp(struct inode *old_dir, struct dentry *old_dentry, argument
756 inode_set_mtime_to_ts(old_dir, inode_set_ctime_current(old_dir));
757 if (new_dir != old_dir)
766 simple_rename_exchange(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
786 simple_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/hfs/
H A Ddir.c283 static int hfs_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
300 old_dir, &old_dentry->d_name,
303 hfs_cat_build_key(old_dir->i_sb,
/linux-master/include/linux/
H A Dfsnotify.h182 * fsnotify_move - file old_name at old_dir was moved to new_name at new_dir
184 static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, argument
204 old_dir, old_name, 0);
207 old_dir, old_name, fs_cookie);
/linux-master/fs/sysv/
H A Dnamei.c191 static int sysv_rename(struct mnt_idmap *idmap, struct inode *old_dir, argument
254 inode_dec_link_count(old_dir);

Completed in 438 milliseconds

123