/fs/fat/ |
D | namei_msdos.c | 435 struct inode *new_dir, unsigned char *new_name, in do_msdos_rename() argument 457 update_dotdot = (is_dir && old_dir != new_dir); in do_msdos_rename() 466 err = fat_scan(new_dir, new_name, &sinfo); in do_msdos_rename() 509 err = msdos_add_entry(new_dir, new_name, is_dir, is_hid, 0, in do_msdos_rename() 515 new_dir->i_version++; in do_msdos_rename() 523 if (IS_DIRSYNC(new_dir)) { in do_msdos_rename() 531 fat_set_start(dotdot_de, MSDOS_I(new_dir)->i_logstart); in do_msdos_rename() 533 if (IS_DIRSYNC(new_dir)) { in do_msdos_rename() 540 inc_nlink(new_dir); in do_msdos_rename() 588 int err2 = fat_remove_entries(new_dir, &sinfo); in do_msdos_rename() [all …]
|
D | namei_vfat.c | 910 struct inode *new_dir, struct dentry *new_dentry) in vfat_rename() argument 930 update_dotdot = (is_dir && old_dir != new_dir); in vfat_rename() 948 err = vfat_add_entry(new_dir, &new_dentry->d_name, is_dir, 0, in vfat_rename() 954 new_dir->i_version++; in vfat_rename() 958 if (IS_DIRSYNC(new_dir)) { in vfat_rename() 966 fat_set_start(dotdot_de, MSDOS_I(new_dir)->i_logstart); in vfat_rename() 968 if (IS_DIRSYNC(new_dir)) { in vfat_rename() 975 inc_nlink(new_dir); in vfat_rename() 1024 int err2 = fat_remove_entries(new_dir, &sinfo); in vfat_rename() 1030 fat_fs_error(new_dir->i_sb, in vfat_rename()
|
/fs/jfs/ |
D | namei.c | 1065 struct inode *new_dir, struct dentry *new_dentry) in jfs_rename() argument 1089 dquot_initialize(new_dir); in jfs_rename() 1112 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, JFS_LOOKUP); in jfs_rename() 1142 tid = txBegin(new_dir->i_sb, 0); in jfs_rename() 1150 mutex_lock_nested(&JFS_IP(new_dir)->commit_mutex, COMMIT_MUTEX_PARENT); in jfs_rename() 1152 if (old_dir != new_dir) in jfs_rename() 1163 rc = dtModify(tid, new_dir, &new_dname, &ino, in jfs_rename() 1172 if (old_dir != new_dir) in jfs_rename() 1175 mutex_unlock(&JFS_IP(new_dir)->commit_mutex); in jfs_rename() 1204 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, in jfs_rename() [all …]
|
/fs/nfs/ |
D | unlink.c | 336 struct inode *new_dir = data->new_dir; in nfs_async_rename_done() local 339 if (!NFS_PROTO(old_dir)->rename_done(task, old_dir, new_dir)) { in nfs_async_rename_done() 363 iput(data->new_dir); in nfs_async_rename_release() 391 nfs_async_rename(struct inode *old_dir, struct inode *new_dir, in nfs_async_rename() argument 423 data->new_dir = new_dir; in nfs_async_rename() 424 ihold(new_dir); in nfs_async_rename() 433 data->args.new_dir = NFS_FH(new_dir); in nfs_async_rename()
|
D | proc.c | 351 struct inode *new_dir) in nfs_proc_rename_done() argument 354 nfs_mark_for_revalidate(new_dir); in nfs_proc_rename_done() 360 struct inode *new_dir, struct qstr *new_name) in nfs_proc_rename() argument 365 .new_dir = NFS_FH(new_dir), in nfs_proc_rename() 377 nfs_mark_for_revalidate(new_dir); in nfs_proc_rename()
|
/fs/ubifs/ |
D | dir.c | 980 struct inode *new_dir, struct dentry *new_dentry) in ubifs_rename() argument 986 int err, release, sync = 0, move = (new_dir != old_dir); in ubifs_rename() 1010 new_dentry->d_name.name, new_dir->i_ino); in ubifs_rename() 1012 ubifs_assert(mutex_is_locked(&new_dir->i_mutex)); in ubifs_rename() 1032 lock_3_inodes(old_dir, new_dir, new_inode); in ubifs_rename() 1054 inc_nlink(new_dir); in ubifs_rename() 1069 new_dir->i_mtime = new_dir->i_ctime = time; in ubifs_rename() 1088 new_dir->i_size += new_sz; in ubifs_rename() 1089 ubifs_inode(new_dir)->ui_size = new_dir->i_size; in ubifs_rename() 1098 sync = IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir); in ubifs_rename() [all …]
|
D | journal.c | 922 const struct inode *new_dir, in ubifs_jnl_rename() argument 933 int move = (old_dir != new_dir); in ubifs_jnl_rename() 939 new_dentry->d_name.name, new_dir->i_ino); in ubifs_jnl_rename() 941 ubifs_assert(ubifs_inode(new_dir)->data_len == 0); in ubifs_jnl_rename() 943 ubifs_assert(mutex_is_locked(&ubifs_inode(new_dir)->ui_mutex)); in ubifs_jnl_rename() 959 if (old_dir != new_dir) in ubifs_jnl_rename() 972 dent_key_init_flash(c, &dent->key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename() 1005 pack_inode(c, p, new_dir, 1); in ubifs_jnl_rename() 1023 ubifs_wbuf_add_ino_nolock(wbuf, new_dir->i_ino); in ubifs_jnl_rename() 1031 dent_key_init(c, &key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename() [all …]
|
/fs/ext2/ |
D | namei.c | 301 struct inode * new_dir, struct dentry * new_dentry ) in ext2_rename() argument 312 dquot_initialize(new_dir); in ext2_rename() 334 new_de = ext2_find_entry (new_dir, &new_dentry->d_name, &new_page); in ext2_rename() 337 ext2_set_link(new_dir, new_de, new_page, old_inode, 1); in ext2_rename() 347 inode_inc_link_count(new_dir); in ext2_rename() 360 if (old_dir != new_dir) in ext2_rename() 361 ext2_set_link(old_inode, dir_de, dir_page, new_dir, 0); in ext2_rename()
|
/fs/logfs/ |
D | dir.c | 605 struct inode *new_dir, struct dentry *new_dentry) in logfs_rename_cross() argument 628 logfs_add_transaction(new_dir, ta); in logfs_rename_cross() 629 err = logfs_write_dir(new_dir, new_dentry, old_dentry->d_inode); in logfs_rename_cross() 631 err = write_inode(new_dir); in logfs_rename_cross() 636 abort_transaction(new_dir, ta); in logfs_rename_cross() 677 struct inode *new_dir, struct dentry *new_dentry) in logfs_rename_target() argument 710 logfs_add_transaction(new_dir, ta); in logfs_rename_target() 711 err = logfs_replace_inode(new_dir, new_dentry, &dd, old_inode); in logfs_rename_target() 716 abort_transaction(new_dir, ta); in logfs_rename_target() 739 struct inode *new_dir, struct dentry *new_dentry) in logfs_rename() argument [all …]
|
/fs/hpfs/ |
D | namei.c | 519 struct inode *new_dir, struct dentry *new_dentry) in hpfs_rename() argument 560 if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, new_name, new_len, NULL, &qbh1))) { in hpfs_rename() 568 hpfs_error(new_dir->i_sb, "hpfs_rename: could not find dirent"); in hpfs_rename() 576 if (new_dir == old_dir) hpfs_brelse4(&qbh); in hpfs_rename() 578 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de))) { in hpfs_rename() 579 if (r == -1) hpfs_error(new_dir->i_sb, "hpfs_rename: dirent already exists!"); in hpfs_rename() 581 if (new_dir != old_dir) hpfs_brelse4(&qbh); in hpfs_rename() 585 if (new_dir == old_dir) in hpfs_rename() 599 hpfs_i(i)->i_parent_dir = new_dir->i_ino; in hpfs_rename() 601 inc_nlink(new_dir); in hpfs_rename() [all …]
|
/fs/debugfs/ |
D | inode.c | 626 struct dentry *new_dir, const char *new_name) in debugfs_rename() argument 632 trap = lock_rename(new_dir, old_dir); in debugfs_rename() 634 if (!old_dir->d_inode || !new_dir->d_inode) in debugfs_rename() 640 dentry = lookup_one_len(new_name, new_dir, strlen(new_name)); in debugfs_rename() 647 error = simple_rename(old_dir->d_inode, old_dentry, new_dir->d_inode, in debugfs_rename() 654 fsnotify_move(old_dir->d_inode, new_dir->d_inode, old_name, in debugfs_rename() 658 unlock_rename(new_dir, old_dir); in debugfs_rename() 664 unlock_rename(new_dir, old_dir); in debugfs_rename()
|
/fs/exofs/ |
D | namei.c | 231 struct inode *new_dir, struct dentry *new_dentry) in exofs_rename() argument 261 new_de = exofs_find_entry(new_dir, new_dentry, &new_page); in exofs_rename() 264 err = exofs_set_link(new_dir, new_de, new_page, old_inode); in exofs_rename() 276 inode_inc_link_count(new_dir); in exofs_rename() 285 err = exofs_set_link(old_inode, dir_de, dir_page, new_dir); in exofs_rename()
|
/fs/nilfs2/ |
D | namei.c | 350 struct inode *new_dir, struct dentry *new_dentry) in nilfs_rename() argument 386 new_de = nilfs_find_entry(new_dir, &new_dentry->d_name, &new_page); in nilfs_rename() 389 nilfs_set_link(new_dir, new_de, new_page, old_inode); in nilfs_rename() 390 nilfs_mark_inode_dirty(new_dir); in nilfs_rename() 401 inc_nlink(new_dir); in nilfs_rename() 402 nilfs_mark_inode_dirty(new_dir); in nilfs_rename() 415 nilfs_set_link(old_inode, dir_de, dir_page, new_dir); in nilfs_rename()
|
/fs/ufs/ |
D | namei.c | 262 struct inode *new_dir, struct dentry *new_dentry) in ufs_rename() argument 292 new_de = ufs_find_entry(new_dir, &new_dentry->d_name, &new_page); in ufs_rename() 295 ufs_set_link(new_dir, new_de, new_page, old_inode); in ufs_rename() 305 inode_inc_link_count(new_dir); in ufs_rename() 318 ufs_set_link(old_inode, dir_de, dir_page, new_dir); in ufs_rename()
|
/fs/f2fs/ |
D | namei.c | 397 struct inode *new_dir, struct dentry *new_dentry) in f2fs_rename() argument 433 new_entry = f2fs_find_entry(new_dir, &new_dentry->d_name, in f2fs_rename() 438 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_rename() 453 inc_nlink(new_dir); in f2fs_rename() 454 update_inode_page(new_dir); in f2fs_rename() 464 if (old_dir != new_dir) { in f2fs_rename() 466 old_dir_page, new_dir); in f2fs_rename()
|
/fs/ocfs2/ |
D | namei.c | 1039 struct inode *new_dir, in ocfs2_rename() argument 1067 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename() 1072 dquot_initialize(new_dir); in ocfs2_rename() 1092 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename() 1103 &new_dir_bh, new_dir); in ocfs2_rename() 1161 if (!new_inode && new_dir != old_dir && in ocfs2_rename() 1162 new_dir->i_nlink >= ocfs2_link_max(osb)) { in ocfs2_rename() 1191 &newfe_blkno, new_dir, in ocfs2_rename() 1271 BUG_ON(new_dentry->d_parent->d_inode != new_dir); in ocfs2_rename() 1273 status = ocfs2_check_dir_for_entry(new_dir, in ocfs2_rename() [all …]
|
/fs/affs/ |
D | namei.c | 414 struct inode *new_dir, struct dentry *new_dentry) in affs_rename() argument 422 (u32)new_dir->i_ino, (int)new_dentry->d_name.len, new_dentry->d_name.name); in affs_rename() 449 affs_lock_dir(new_dir); in affs_rename() 450 retval = affs_insert_hash(new_dir, bh); in affs_rename() 451 affs_unlock_dir(new_dir); in affs_rename() 455 mark_buffer_dirty_inode(bh, retval ? old_dir : new_dir); in affs_rename()
|
/fs/reiserfs/ |
D | namei.c | 1213 struct inode *new_dir, struct dentry *new_dentry) in reiserfs_rename() argument 1241 dquot_initialize(new_dir); in reiserfs_rename() 1306 reiserfs_add_entry(&th, new_dir, new_dentry->d_name.name, in reiserfs_rename() 1320 reiserfs_update_inode_transaction(new_dir); in reiserfs_rename() 1333 search_by_entry_key(new_dir->i_sb, &old_de.de_entry_key, in reiserfs_rename() 1349 reiserfs_find_entry(new_dir, new_dentry->d_name.name, in reiserfs_rename() 1368 search_by_entry_key(new_dir->i_sb, in reiserfs_rename() 1452 new_dir->i_ctime = new_dir->i_mtime = ctime; in reiserfs_rename() 1470 set_ino_in_dir_entry(&dot_dot_de, INODE_PKEY(new_dir)); in reiserfs_rename() 1471 journal_mark_dirty(&th, new_dir->i_sb, dot_dot_de.de_bh); in reiserfs_rename() [all …]
|
/fs/hfs/ |
D | dir.c | 286 struct inode *new_dir, struct dentry *new_dentry) in hfs_rename() argument 292 res = hfs_remove(new_dir, new_dentry); in hfs_rename() 299 new_dir, &new_dentry->d_name); in hfs_rename() 303 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
|
/fs/ncpfs/ |
D | dir.c | 235 struct inode *new_dir, struct dentry* new_dentry, char *_new_name) in ncp_force_rename() argument 256 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(new_dir), new_dir, _new_name, DM_ATTRIBU… in ncp_force_rename() 265 new_dir, _new_name); in ncp_force_rename() 284 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(new_dir), new_dir, _new_name, DM_ATTRIBU… in ncp_force_rename() 1123 struct inode *new_dir, struct dentry *new_dentry) in ncp_rename() argument 1158 !ncp_preserve_case(new_dir)); in ncp_rename() 1163 new_dir, __new_name); in ncp_rename() 1168 new_dir, new_dentry, __new_name); in ncp_rename()
|
D | ncplib_kernel.c | 905 struct inode *new_dir, const char *new_name) in ncp_RenameNSEntry() argument 910 (new_dir == NULL) || (new_name == NULL)) in ncp_RenameNSEntry() 926 ncp_add_byte(server, NCP_FINFO(new_dir)->volNumber); in ncp_RenameNSEntry() 927 ncp_add_dword(server, NCP_FINFO(new_dir)->dirEntNum); in ncp_RenameNSEntry() 944 struct inode *new_dir, const char *new_name) in ncp_ren_or_mov_file_or_subdir() argument 951 new_dir, new_name); in ncp_ren_or_mov_file_or_subdir() 956 new_dir, new_name); in ncp_ren_or_mov_file_or_subdir() 959 result = ncp_del_file_or_subdir(server, new_dir, new_name); in ncp_ren_or_mov_file_or_subdir() 962 new_dir, new_name); in ncp_ren_or_mov_file_or_subdir()
|
/fs/minix/ |
D | namei.c | 176 struct inode * new_dir, struct dentry *new_dentry) in minix_rename() argument 219 inode_inc_link_count(new_dir); in minix_rename() 226 minix_set_link(dir_de, dir_page, new_dir); in minix_rename()
|
/fs/sysv/ |
D | namei.c | 210 struct inode * new_dir, struct dentry * new_dentry) in sysv_rename() argument 253 inode_inc_link_count(new_dir); in sysv_rename() 260 sysv_set_link(dir_de, dir_page, new_dir); in sysv_rename()
|
/fs/coda/ |
D | dir.c | 351 struct inode *new_dir, struct dentry *new_dentry) in coda_rename() argument 360 coda_i2f(new_dir), old_length, new_length, in coda_rename() 366 coda_dir_inc_nlink(new_dir); in coda_rename() 369 coda_dir_update_mtime(new_dir); in coda_rename() 373 coda_flag_inode(new_dir, C_VATTR); in coda_rename()
|
/fs/ext3/ |
D | namei.c | 2339 struct inode * new_dir,struct dentry *new_dentry) in ext3_rename() argument 2348 dquot_initialize(new_dir); in ext3_rename() 2362 if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir)) in ext3_rename() 2378 new_bh = ext3_find_entry(new_dir, &new_dentry->d_name, &new_de); in ext3_rename() 2398 if (!new_inode && new_dir!=old_dir && in ext3_rename() 2399 new_dir->i_nlink >= EXT3_LINK_MAX) in ext3_rename() 2412 if (EXT3_HAS_INCOMPAT_FEATURE(new_dir->i_sb, in ext3_rename() 2415 new_dir->i_version++; in ext3_rename() 2416 new_dir->i_ctime = new_dir->i_mtime = CURRENT_TIME_SEC; in ext3_rename() 2417 ext3_mark_inode_dirty(handle, new_dir); in ext3_rename() [all …]
|