Home
last modified time | relevance | path

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

12

/fs/fat/
Dnamei_msdos.c447 struct inode *new_dir, unsigned char *new_name, in do_msdos_rename() argument
469 update_dotdot = (is_dir && old_dir != new_dir); in do_msdos_rename()
479 err = fat_scan(new_dir, new_name, &sinfo); in do_msdos_rename()
522 err = msdos_add_entry(new_dir, new_name, is_dir, is_hid, 0, in do_msdos_rename()
528 new_dir->i_version++; in do_msdos_rename()
536 if (IS_DIRSYNC(new_dir)) { in do_msdos_rename()
544 int start = MSDOS_I(new_dir)->i_logstart; in do_msdos_rename()
548 if (IS_DIRSYNC(new_dir)) { in do_msdos_rename()
555 inc_nlink(new_dir); in do_msdos_rename()
605 int err2 = fat_remove_entries(new_dir, &sinfo); in do_msdos_rename()
[all …]
Dnamei_vfat.c908 struct inode *new_dir, struct dentry *new_dentry) in vfat_rename() argument
928 update_dotdot = (is_dir && old_dir != new_dir); in vfat_rename()
947 err = vfat_add_entry(new_dir, &new_dentry->d_name, is_dir, 0, in vfat_rename()
953 new_dir->i_version++; in vfat_rename()
957 if (IS_DIRSYNC(new_dir)) { in vfat_rename()
965 int start = MSDOS_I(new_dir)->i_logstart; in vfat_rename()
969 if (IS_DIRSYNC(new_dir)) { in vfat_rename()
976 inc_nlink(new_dir); in vfat_rename()
1027 int err2 = fat_remove_entries(new_dir, &sinfo); in vfat_rename()
1033 fat_fs_error(new_dir->i_sb, in vfat_rename()
/fs/jfs/
Dnamei.c1067 struct inode *new_dir, struct dentry *new_dentry) in jfs_rename() argument
1111 rc = dtSearch(new_dir, &new_dname, &ino, &btstack, JFS_LOOKUP); in jfs_rename()
1131 } else if ((new_dir != old_dir) && in jfs_rename()
1132 (new_dir->i_nlink == JFS_LINK_MAX)) { in jfs_rename()
1145 tid = txBegin(new_dir->i_sb, 0); in jfs_rename()
1153 mutex_lock_nested(&JFS_IP(new_dir)->commit_mutex, COMMIT_MUTEX_PARENT); in jfs_rename()
1155 if (old_dir != new_dir) in jfs_rename()
1166 rc = dtModify(tid, new_dir, &new_dname, &ino, in jfs_rename()
1175 if (old_dir != new_dir) in jfs_rename()
1178 mutex_unlock(&JFS_IP(new_dir)->commit_mutex); in jfs_rename()
[all …]
/fs/debugfs/
Dinode.c456 struct dentry *new_dir, const char *new_name) in debugfs_rename() argument
462 trap = lock_rename(new_dir, old_dir); in debugfs_rename()
464 if (!old_dir->d_inode || !new_dir->d_inode) in debugfs_rename()
470 dentry = lookup_one_len(new_name, new_dir, strlen(new_name)); in debugfs_rename()
477 error = simple_rename(old_dir->d_inode, old_dentry, new_dir->d_inode, in debugfs_rename()
484 fsnotify_move(old_dir->d_inode, new_dir->d_inode, old_name, in debugfs_rename()
488 unlock_rename(new_dir, old_dir); in debugfs_rename()
494 unlock_rename(new_dir, old_dir); in debugfs_rename()
/fs/hpfs/
Dnamei.c546 struct inode *new_dir, struct dentry *new_dentry) in hpfs_rename() argument
572 if (new_dir != old_dir) in hpfs_rename()
573 mutex_lock(&hpfs_i(new_dir)->i_mutex); in hpfs_rename()
592 … if ((nde = map_dirent(new_dir, hpfs_i(new_dir)->i_dno, (char *)new_name, new_len, NULL, &qbh1))) { in hpfs_rename()
600 hpfs_error(new_dir->i_sb, "hpfs_rename: could not find dirent"); in hpfs_rename()
608 if (new_dir == old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
611 if ((r = hpfs_add_dirent(new_dir, new_name, new_len, &de, 1))) { in hpfs_rename()
613 if (r == -1) hpfs_error(new_dir->i_sb, "hpfs_rename: dirent already exists!"); in hpfs_rename()
615 if (new_dir != old_dir) hpfs_brelse4(&qbh); in hpfs_rename()
619 if (new_dir == old_dir) in hpfs_rename()
[all …]
/fs/ubifs/
Ddir.c968 struct inode *new_dir, struct dentry *new_dentry) in ubifs_rename() argument
974 int err, release, sync = 0, move = (new_dir != old_dir); in ubifs_rename()
997 new_dentry->d_name.name, new_dir->i_ino); in ubifs_rename()
999 ubifs_assert(mutex_is_locked(&new_dir->i_mutex)); in ubifs_rename()
1019 lock_3_inodes(old_dir, new_dir, new_inode); in ubifs_rename()
1041 inc_nlink(new_dir); in ubifs_rename()
1056 new_dir->i_mtime = new_dir->i_ctime = time; in ubifs_rename()
1074 new_dir->i_size += new_sz; in ubifs_rename()
1075 ubifs_inode(new_dir)->ui_size = new_dir->i_size; in ubifs_rename()
1084 sync = IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir); in ubifs_rename()
[all …]
Djournal.c900 const struct inode *new_dir, in ubifs_jnl_rename() argument
911 int move = (old_dir != new_dir); in ubifs_jnl_rename()
917 new_dentry->d_name.name, new_dir->i_ino); in ubifs_jnl_rename()
919 ubifs_assert(ubifs_inode(new_dir)->data_len == 0); in ubifs_jnl_rename()
921 ubifs_assert(mutex_is_locked(&ubifs_inode(new_dir)->ui_mutex)); in ubifs_jnl_rename()
937 if (old_dir != new_dir) in ubifs_jnl_rename()
950 dent_key_init_flash(c, &dent->key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename()
983 pack_inode(c, p, new_dir, 1); in ubifs_jnl_rename()
1001 ubifs_wbuf_add_ino_nolock(wbuf, new_dir->i_ino); in ubifs_jnl_rename()
1009 dent_key_init(c, &key, new_dir->i_ino, &new_dentry->d_name); in ubifs_jnl_rename()
[all …]
/fs/ufs/
Dnamei.c274 struct inode *new_dir, struct dentry *new_dentry) in ufs_rename() argument
304 new_de = ufs_find_entry(new_dir, new_dentry, &new_page); in ufs_rename()
308 ufs_set_link(new_dir, new_de, new_page, old_inode); in ufs_rename()
316 if (new_dir->i_nlink >= UFS_LINK_MAX) in ufs_rename()
326 inode_inc_link_count(new_dir); in ufs_rename()
340 ufs_set_link(old_inode, dir_de, dir_page, new_dir); in ufs_rename()
/fs/ext2/
Dnamei.c289 struct inode * new_dir, struct dentry * new_dentry ) in ext2_rename() argument
319 new_de = ext2_find_entry (new_dir, &new_dentry->d_name, &new_page); in ext2_rename()
323 ext2_set_link(new_dir, new_de, new_page, old_inode); in ext2_rename()
331 if (new_dir->i_nlink >= EXT2_LINK_MAX) in ext2_rename()
341 inode_inc_link_count(new_dir); in ext2_rename()
355 ext2_set_link(old_inode, dir_de, dir_page, new_dir); in ext2_rename()
/fs/ocfs2/
Dnamei.c1004 struct inode *new_dir, in ocfs2_rename() argument
1035 old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1057 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1068 &new_dir_bh, new_dir); in ocfs2_rename()
1124 if (!new_inode && new_dir != old_dir && in ocfs2_rename()
1125 new_dir->i_nlink >= OCFS2_LINK_MAX) { in ocfs2_rename()
1154 &newfe_blkno, new_dir, &new_de_bh, in ocfs2_rename()
1235 BUG_ON(new_dentry->d_parent->d_inode != new_dir); in ocfs2_rename()
1237 status = ocfs2_check_dir_for_entry(new_dir, in ocfs2_rename()
1243 status = ocfs2_prepare_dir_for_insert(osb, new_dir, new_dir_bh, in ocfs2_rename()
[all …]
Ddcache.c432 struct inode *old_dir, struct inode *new_dir) in ocfs2_dentry_move() argument
444 if (old_dir == new_dir) in ocfs2_dentry_move()
450 ret = ocfs2_dentry_attach_lock(dentry, inode, OCFS2_I(new_dir)->ip_blkno); in ocfs2_dentry_move()
Ddcache.h61 struct inode *old_dir, struct inode *new_dir);
/fs/sysv/
Dnamei.c215 struct inode * new_dir, struct dentry * new_dentry) in sysv_rename() argument
257 if (new_dir->i_nlink >= SYSV_SB(new_dir->i_sb)->s_link_max) in sysv_rename()
267 inode_inc_link_count(new_dir); in sysv_rename()
274 sysv_set_link(dir_de, dir_page, new_dir); in sysv_rename()
/fs/affs/
Dnamei.c398 struct inode *new_dir, struct dentry *new_dentry) in affs_rename() argument
406 (u32)new_dir->i_ino, (int)new_dentry->d_name.len, new_dentry->d_name.name); in affs_rename()
433 affs_lock_dir(new_dir); in affs_rename()
434 retval = affs_insert_hash(new_dir, bh); in affs_rename()
435 affs_unlock_dir(new_dir); in affs_rename()
439 mark_buffer_dirty_inode(bh, retval ? old_dir : new_dir); in affs_rename()
/fs/minix/
Dnamei.c189 struct inode * new_dir, struct dentry *new_dentry) in minix_rename() argument
232 if (new_dir->i_nlink >= info->s_link_max) in minix_rename()
242 inode_inc_link_count(new_dir); in minix_rename()
249 minix_set_link(dir_de, dir_page, new_dir); in minix_rename()
/fs/hfs/
Ddir.c295 struct inode *new_dir, struct dentry *new_dentry) in hfs_rename() argument
301 res = hfs_unlink(new_dir, new_dentry); in hfs_rename()
308 new_dir, &new_dentry->d_name); in hfs_rename()
312 new_dir->i_ino, &new_dentry->d_name); in hfs_rename()
/fs/reiserfs/
Dnamei.c1227 struct inode *new_dir, struct dentry *new_dentry) in reiserfs_rename() argument
1317 reiserfs_add_entry(&th, new_dir, new_dentry->d_name.name, in reiserfs_rename()
1331 reiserfs_update_inode_transaction(new_dir); in reiserfs_rename()
1344 search_by_entry_key(new_dir->i_sb, &old_de.de_entry_key, in reiserfs_rename()
1360 reiserfs_find_entry(new_dir, new_dentry->d_name.name, in reiserfs_rename()
1379 search_by_entry_key(new_dir->i_sb, in reiserfs_rename()
1463 new_dir->i_ctime = new_dir->i_mtime = ctime; in reiserfs_rename()
1481 set_ino_in_dir_entry(&dot_dot_de, INODE_PKEY(new_dir)); in reiserfs_rename()
1482 journal_mark_dirty(&th, new_dir->i_sb, dot_dot_de.de_bh); in reiserfs_rename()
1487 INC_DIR_INODE_NLINK(new_dir); in reiserfs_rename()
[all …]
/fs/
Dnamei.c2513 struct inode *new_dir, struct dentry *new_dentry) in vfs_rename_dir() argument
2522 if (new_dir != old_dir) { in vfs_rename_dir()
2528 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_dir()
2540 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_dir()
2556 struct inode *new_dir, struct dentry *new_dentry) in vfs_rename_other() argument
2561 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_other()
2572 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_other()
2584 struct inode *new_dir, struct dentry *new_dentry) in vfs_rename() argument
2598 error = may_create(new_dir, new_dentry); in vfs_rename()
2600 error = may_delete(new_dir, new_dentry, is_dir); in vfs_rename()
[all …]
Dlibfs.c307 struct inode *new_dir, struct dentry *new_dentry) in simple_rename() argument
316 simple_unlink(new_dir, new_dentry); in simple_rename()
321 inc_nlink(new_dir); in simple_rename()
324 old_dir->i_ctime = old_dir->i_mtime = new_dir->i_ctime = in simple_rename()
325 new_dir->i_mtime = inode->i_ctime = CURRENT_TIME; in simple_rename()
/fs/ncpfs/
Ddir.c211 struct inode *new_dir, struct dentry* new_dentry, char *_new_name) in ncp_force_rename() argument
232 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(new_dir), new_dir, _new_name, DM_ATTRIBU… in ncp_force_rename()
241 new_dir, _new_name); in ncp_force_rename()
260 …res2 = ncp_modify_file_or_subdir_dos_info_path(NCP_SERVER(new_dir), new_dir, _new_name, DM_ATTRIBU… in ncp_force_rename()
1110 struct inode *new_dir, struct dentry *new_dentry) in ncp_rename() argument
1139 !ncp_preserve_case(new_dir)); in ncp_rename()
1144 new_dir, __new_name); in ncp_rename()
1149 new_dir, new_dentry, __new_name); in ncp_rename()
Dncplib_kernel.c894 struct inode *new_dir, char *new_name) in ncp_RenameNSEntry() argument
899 (new_dir == NULL) || (new_name == NULL)) in ncp_RenameNSEntry()
915 ncp_add_byte(server, NCP_FINFO(new_dir)->volNumber); in ncp_RenameNSEntry()
916 ncp_add_dword(server, NCP_FINFO(new_dir)->dirEntNum); in ncp_RenameNSEntry()
933 struct inode *new_dir, char *new_name) in ncp_ren_or_mov_file_or_subdir() argument
940 new_dir, new_name); in ncp_ren_or_mov_file_or_subdir()
945 new_dir, new_name); in ncp_ren_or_mov_file_or_subdir()
948 result = ncp_del_file_or_subdir(server, new_dir, new_name); in ncp_ren_or_mov_file_or_subdir()
951 new_dir, new_name); in ncp_ren_or_mov_file_or_subdir()
/fs/coda/
Ddir.c397 struct inode *new_dir, struct dentry *new_dentry) in coda_rename() argument
408 coda_i2f(new_dir), old_length, new_length, in coda_rename()
415 coda_dir_inc_nlink(new_dir); in coda_rename()
418 coda_dir_update_mtime(new_dir); in coda_rename()
422 coda_flag_inode(new_dir, C_VATTR); in coda_rename()
/fs/ext4/
Dnamei.c2308 struct inode *new_dir, struct dentry *new_dentry) in ext4_rename() argument
2328 if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir)) in ext4_rename()
2344 new_bh = ext4_find_entry(new_dir, &new_dentry->d_name, &new_de); in ext4_rename()
2364 if (!new_inode && new_dir != old_dir && in ext4_rename()
2365 new_dir->i_nlink >= EXT4_LINK_MAX) in ext4_rename()
2376 if (EXT4_HAS_INCOMPAT_FEATURE(new_dir->i_sb, in ext4_rename()
2379 new_dir->i_version++; in ext4_rename()
2380 new_dir->i_ctime = new_dir->i_mtime = in ext4_rename()
2381 ext4_current_time(new_dir); in ext4_rename()
2382 ext4_mark_inode_dirty(handle, new_dir); in ext4_rename()
[all …]
/fs/ext3/
Dnamei.c2262 struct inode * new_dir,struct dentry *new_dentry) in ext3_rename() argument
2282 if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir)) in ext3_rename()
2298 new_bh = ext3_find_entry(new_dir, &new_dentry->d_name, &new_de); in ext3_rename()
2318 if (!new_inode && new_dir!=old_dir && in ext3_rename()
2319 new_dir->i_nlink >= EXT3_LINK_MAX) in ext3_rename()
2330 if (EXT3_HAS_INCOMPAT_FEATURE(new_dir->i_sb, in ext3_rename()
2333 new_dir->i_version++; in ext3_rename()
2334 new_dir->i_ctime = new_dir->i_mtime = CURRENT_TIME_SEC; in ext3_rename()
2335 ext3_mark_inode_dirty(handle, new_dir); in ext3_rename()
2387 PARENT_INO(dir_bh->b_data) = cpu_to_le32(new_dir->i_ino); in ext3_rename()
[all …]
/fs/bfs/
Ddir.c222 struct inode *new_dir, struct dentry *new_dentry) in bfs_rename() argument
247 new_bh = bfs_find_entry(new_dir, in bfs_rename()
256 error = bfs_add_entry(new_dir, in bfs_rename()

12