/linux-2.4.37.9/fs/msdos/ |
D | namei.c | 441 static int do_msdos_rename(struct inode *old_dir, char *old_name, in do_msdos_rename() argument 447 struct super_block *sb = old_dir->i_sb; in do_msdos_rename() 499 old_dir->i_version = ++event; in do_msdos_rename() 500 old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; in do_msdos_rename() 501 mark_inode_dirty(old_dir); in do_msdos_rename() 511 old_dir->i_nlink--; in do_msdos_rename() 512 mark_inode_dirty(old_dir); in do_msdos_rename() 536 old_dir->i_version = ++event; in do_msdos_rename() 537 old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; in do_msdos_rename() 538 mark_inode_dirty(old_dir); in do_msdos_rename() [all …]
|
/linux-2.4.37.9/fs/intermezzo/ |
D | dir.c | 756 inline void presto_triple_unlock(struct inode *old_dir, struct inode *new_dir, in presto_triple_unlock() argument 763 triple_up(&old_dir->i_zombie, in presto_triple_unlock() 767 double_up(&old_dir->i_zombie, in presto_triple_unlock() 770 up(&old_dir->i_sb->s_vfs_rename_sem); in presto_triple_unlock() 772 double_up(&old_dir->i_zombie, &new_dir->i_zombie); in presto_triple_unlock() 775 double_up(&old_dir->i_sem, &new_dir->i_sem); in presto_triple_unlock() 778 inline void presto_triple_fulllock(struct inode *old_dir, in presto_triple_fulllock() argument 784 double_down(&old_dir->i_sem, &new_dir->i_sem); in presto_triple_fulllock() 788 down(&old_dir->i_sb->s_vfs_rename_sem); in presto_triple_fulllock() 790 triple_down(&old_dir->i_zombie, in presto_triple_fulllock() [all …]
|
D | vfs.c | 1746 struct inode *old_dir = old_parent->d_inode; in do_rename() local 1750 presto_getversion(&src_dir_ver, old_dir); in do_rename() 1765 handle = presto_trans_start(fset, old_dir, KML_OPCODE_RENAME); in do_rename() 1776 error = iops->rename(old_dir, old_dentry, new_dir, new_dentry); in do_rename() 1829 struct inode *old_dir = old_parent->d_inode; in presto_rename_dir() local 1835 error = may_delete(old_dir, old_dentry, 1); in presto_rename_dir() 1839 if (new_dir->i_dev != old_dir->i_dev) in presto_rename_dir() 1849 if (!old_dir->i_op || !old_dir->i_op->rename) in presto_rename_dir() 1856 if (new_dir != old_dir) { in presto_rename_dir() 1862 DQUOT_INIT(old_dir); in presto_rename_dir() [all …]
|
/linux-2.4.37.9/fs/ |
D | namei.c | 1741 int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry, in vfs_rename_dir() argument 1750 error = may_delete(old_dir, old_dentry, 1); in vfs_rename_dir() 1754 if (new_dir->i_dev != old_dir->i_dev) in vfs_rename_dir() 1764 if (!old_dir->i_op || !old_dir->i_op->rename) in vfs_rename_dir() 1771 if (new_dir != old_dir) { in vfs_rename_dir() 1777 DQUOT_INIT(old_dir); in vfs_rename_dir() 1779 down(&old_dir->i_sb->s_vfs_rename_sem); in vfs_rename_dir() 1789 triple_down(&old_dir->i_zombie, in vfs_rename_dir() 1794 double_down(&old_dir->i_zombie, in vfs_rename_dir() 1799 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry); in vfs_rename_dir() [all …]
|
/linux-2.4.37.9/fs/jfs/ |
D | namei.c | 1017 static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry, in jfs_rename() argument 1053 rc = dtSearch(old_dir, &old_dname, &ino, &btstack, JFS_LOOKUP); in jfs_rename() 1082 } else if ((new_dir != old_dir) && in jfs_rename() 1097 if (old_dir != new_dir) in jfs_rename() 1098 down(&JFS_IP(old_dir)->commit_sem); in jfs_rename() 1116 if (old_dir != new_dir) in jfs_rename() 1117 up(&JFS_IP(old_dir)->commit_sem); in jfs_rename() 1169 rc = dtDelete(tid, old_dir, &old_dname, &ino, JFS_REMOVE); in jfs_rename() 1177 old_dir->i_nlink--; in jfs_rename() 1178 if (old_dir != new_dir) { in jfs_rename() [all …]
|
/linux-2.4.37.9/fs/reiserfs/ |
D | namei.c | 1033 static int reiserfs_rename (struct inode * old_dir, struct dentry *old_dentry, in reiserfs_rename() argument 1062 retval = reiserfs_find_entry (old_dir, old_dentry->d_name.name, old_dentry->d_name.len, in reiserfs_rename() 1094 if (dot_dot_de.de_objectid != old_dir->i_ino) in reiserfs_rename() 1098 journal_begin(&th, old_dir->i_sb, jbegin_count) ; in reiserfs_rename() 1106 reiserfs_panic (old_dir->i_sb, in reiserfs_rename() 1111 journal_end(&th, old_dir->i_sb, jbegin_count) ; in reiserfs_rename() 1115 reiserfs_update_inode_transaction(old_dir) ; in reiserfs_rename() 1184 !entry_points_to_object ( "..", 2, &dot_dot_de, old_dir) ) { in reiserfs_rename() 1204 journal_mark_dirty (&th, old_dir->i_sb, new_de.de_bh); in reiserfs_rename() 1207 journal_mark_dirty (&th, old_dir->i_sb, old_de.de_bh); in reiserfs_rename() [all …]
|
/linux-2.4.37.9/fs/hpfs/ |
D | namei.c | 432 int hpfs_rename(struct inode *old_dir, struct dentry *old_dentry, in hpfs_rename() argument 453 hpfs_lock_3inodes(old_dir, new_dir, i); in hpfs_rename() 461 if (!(dep = map_dirent(old_dir, old_dir->i_hpfs_dno, (char *)old_name, old_len, &dno, &qbh))) { in hpfs_rename() 471 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) { in hpfs_rename() 488 if (new_dir == old_dir) hpfs_brelse4(&qbh); in hpfs_rename() 495 if (new_dir != old_dir) hpfs_brelse4(&qbh); in hpfs_rename() 499 if (new_dir == old_dir) in hpfs_rename() 500 if (!(dep = map_dirent(old_dir, old_dir->i_hpfs_dno, (char *)old_name, old_len, &dno, &qbh))) { in hpfs_rename() 507 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 0))) { in hpfs_rename() 519 old_dir->i_nlink--; in hpfs_rename() [all …]
|
/linux-2.4.37.9/fs/affs/ |
D | namei.c | 425 affs_rename(struct inode *old_dir, struct dentry *old_dentry, in affs_rename() argument 428 struct super_block *sb = old_dir->i_sb; in affs_rename() 433 (u32)old_dir->i_ino, (int)old_dentry->d_name.len, old_dentry->d_name.name, in affs_rename() 452 affs_lock_dir(old_dir); in affs_rename() 453 retval = affs_remove_hash(old_dir, bh); in affs_rename() 454 affs_unlock_dir(old_dir); in affs_rename() 467 mark_buffer_dirty_inode(bh, retval ? old_dir : new_dir); in affs_rename()
|
/linux-2.4.37.9/fs/bfs/ |
D | dir.c | 191 static int bfs_rename(struct inode * old_dir, struct dentry * old_dentry, in bfs_rename() argument 204 old_bh = bfs_find_entry(old_dir, in bfs_rename() 229 old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; in bfs_rename() 230 old_dir->i_version = ++event; in bfs_rename() 231 mark_inode_dirty(old_dir); in bfs_rename()
|
/linux-2.4.37.9/fs/ext3/ |
D | namei.c | 986 static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry, in ext3_rename() argument 997 handle = ext3_journal_start(old_dir, 2 * EXT3_DATA_TRANS_BLOCKS + 2); in ext3_rename() 1001 if (IS_SYNC(old_dir) || IS_SYNC(new_dir)) in ext3_rename() 1036 if (le32_to_cpu(PARENT_INO(dir_bh->b_data)) != old_dir->i_ino) in ext3_rename() 1039 if (!new_inode && new_dir!=old_dir && in ext3_rename() 1072 ext3_delete_entry(handle, old_dir, old_de, old_bh); in ext3_rename() 1078 old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; in ext3_rename() 1079 old_dir->u.ext3_i.i_flags &= ~EXT3_INDEX_FL; in ext3_rename() 1086 old_dir->i_nlink--; in ext3_rename() 1095 ext3_mark_inode_dirty(handle, old_dir); in ext3_rename() [all …]
|
/linux-2.4.37.9/fs/hfs/ |
D | dir.c | 348 int hfs_rename(struct inode *old_dir, struct dentry *old_dentry, in hfs_rename() argument 351 struct hfs_cat_entry *old_parent = HFS_I(old_dir)->entry; in hfs_rename() 358 if (build_key(&key, old_dir, old_dentry->d_name.name, in hfs_rename() 360 (HFS_ITYPE(old_dir->i_ino) != HFS_ITYPE(new_dir->i_ino))) in hfs_rename()
|
D | dir_nat.c | 417 static int nat_hdr_rename(struct inode *old_dir, struct dentry *old_dentry, in nat_hdr_rename() argument 420 struct hfs_cat_entry *entry = HFS_I(old_dir)->entry; in nat_hdr_rename() 423 if (!HFS_SB(old_dir->i_sb)->s_afpd) { in nat_hdr_rename() 429 hfs_nameout(old_dir, &cname, old_dentry->d_name.name, in nat_hdr_rename()
|
D | dir_dbl.c | 353 static int dbl_rename(struct inode *old_dir, struct dentry *old_dentry, in dbl_rename() argument 362 error = hfs_rename(old_dir, old_dentry, in dbl_rename() 365 is_hdr(old_dir, old_dentry->d_name.name, in dbl_rename()
|
D | catalog.c | 1316 int hfs_cat_move(struct hfs_cat_entry *old_dir, struct hfs_cat_entry *new_dir, in hfs_cat_move() argument 1330 if (!old_dir || !new_dir) { in hfs_cat_move() 1333 mdb = old_dir->mdb; in hfs_cat_move() 1358 if (old_dir != new_dir) { in hfs_cat_move() 1359 start_write(old_dir); in hfs_cat_move() 1476 update_dir(mdb, old_dir, is_dir, -1); in hfs_cat_move() 1566 if (new_dir != old_dir) { in hfs_cat_move() 1567 end_write(old_dir); in hfs_cat_move()
|
/linux-2.4.37.9/fs/udf/ |
D | namei.c | 1145 static int udf_rename (struct inode * old_dir, struct dentry * old_dentry, in udf_rename() argument 1155 if ((ofi = udf_find_entry(old_dir, old_dentry, &ofibh, &ocfi))) in udf_rename() 1161 if (!ofi || udf_get_lb_pblock(old_dir->i_sb, lelb_to_cpu(ocfi.icb.extLocation), 0) != in udf_rename() 1196 old_dir->i_ino) in udf_rename() 1229 ofi = udf_find_entry(old_dir, old_dentry, &ofibh, &ocfi); in udf_rename() 1230 udf_delete_entry(old_dir, ofi, &ofibh, &ocfi); in udf_rename() 1232 old_dir->i_version = ++event; in udf_rename() 1240 old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; in udf_rename() 1241 UDF_I_UCTIME(old_dir) = UDF_I_UMTIME(old_dir) = CURRENT_UTIME; in udf_rename() 1242 mark_inode_dirty(old_dir); in udf_rename() [all …]
|
/linux-2.4.37.9/fs/ncpfs/ |
D | ncplib_kernel.c | 683 struct inode *old_dir, char *old_name, int old_type, in ncp_RenameNSEntry() argument 688 if ((old_dir == NULL) || (old_name == NULL) || in ncp_RenameNSEntry() 694 ncp_add_byte(server, server->name_space[NCP_FINFO(old_dir)->volNumber]); in ncp_RenameNSEntry() 699 ncp_add_byte(server, NCP_FINFO(old_dir)->volNumber); in ncp_RenameNSEntry() 700 ncp_add_dword(server, NCP_FINFO(old_dir)->dirEntNum); in ncp_RenameNSEntry() 722 struct inode *old_dir, char *old_name, in ncp_ren_or_mov_file_or_subdir() argument 729 result = ncp_RenameNSEntry(server, old_dir, old_name, old_type, in ncp_ren_or_mov_file_or_subdir() 734 result = ncp_RenameNSEntry(server, old_dir, old_name, old_type, in ncp_ren_or_mov_file_or_subdir() 740 result = ncp_RenameNSEntry(server, old_dir, old_name, old_type, in ncp_ren_or_mov_file_or_subdir()
|
D | dir.c | 205 ncp_force_rename(struct inode *old_dir, struct dentry* old_dentry, char *_old_name, in ncp_force_rename() argument 234 res = ncp_ren_or_mov_file_or_subdir(NCP_SERVER(old_dir), in ncp_force_rename() 235 old_dir, _old_name, in ncp_force_rename() 1028 static int ncp_rename(struct inode *old_dir, struct dentry *old_dentry, in ncp_rename() argument 1031 struct ncp_server *server = NCP_SERVER(old_dir); in ncp_rename() 1050 !ncp_preserve_case(old_dir)); in ncp_rename() 1061 error = ncp_ren_or_mov_file_or_subdir(server, old_dir, __old_name, in ncp_rename() 1066 error = ncp_force_rename(old_dir, old_dentry, __old_name, in ncp_rename()
|
/linux-2.4.37.9/fs/ufs/ |
D | namei.c | 253 static int ufs_rename (struct inode * old_dir, struct dentry * old_dentry, in ufs_rename() argument 308 ufs_delete_entry (old_dir, old_de, old_bh); in ufs_rename() 314 ufs_dec_count(old_dir); in ufs_rename()
|
/linux-2.4.37.9/fs/ext2/ |
D | namei.c | 260 static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry, in ext2_rename() argument 271 old_de = ext2_find_entry (old_dir, old_dentry, &old_page); in ext2_rename() 328 ext2_dec_count(old_dir); in ext2_rename()
|
/linux-2.4.37.9/fs/minix/ |
D | namei.c | 224 static int minix_rename(struct inode * old_dir, struct dentry *old_dentry, in minix_rename() argument 227 struct minix_sb_info * info = &old_dir->i_sb->u.minix_sb; in minix_rename() 286 dec_count(old_dir); in minix_rename()
|
/linux-2.4.37.9/fs/vfat/ |
D | namei.c | 1168 int vfat_rename(struct inode *old_dir,struct dentry *old_dentry, in vfat_rename() argument 1171 struct super_block *sb = old_dir->i_sb; in vfat_rename() 1182 res = vfat_find(old_dir,&old_dentry->d_name,&old_sinfo,&old_bh,&old_de); in vfat_rename() 1216 vfat_remove_entry(old_dir,&old_sinfo,old_bh,old_de); in vfat_rename() 1222 old_dir->i_version = ++event; in vfat_rename() 1223 old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME; in vfat_rename() 1224 mark_inode_dirty(old_dir); in vfat_rename() 1235 old_dir->i_nlink--; in vfat_rename()
|
/linux-2.4.37.9/fs/coda/ |
D | dir.c | 448 static int coda_rename(struct inode *old_dir, struct dentry *old_dentry, in coda_rename() argument 465 error = venus_rename(old_dir->i_sb, coda_i2f(old_dir), in coda_rename() 474 coda_dir_changed(old_dir, -link_adjust); in coda_rename() 478 coda_flag_inode(old_dir, C_VATTR); in coda_rename()
|
/linux-2.4.37.9/fs/nfs/ |
D | proc.c | 257 nfs_proc_rename(struct inode *old_dir, struct qstr *old_name, in nfs_proc_rename() argument 260 struct nfs_renameargs arg = { NFS_FH(old_dir), old_name->name, in nfs_proc_rename() 267 status = rpc_call(NFS_CLIENT(old_dir), NFSPROC_RENAME, &arg, NULL, 0); in nfs_proc_rename()
|
D | nfs3proc.c | 336 nfs3_proc_rename(struct inode *old_dir, struct qstr *old_name, in nfs3_proc_rename() argument 340 struct nfs3_renameargs arg = { NFS_FH(old_dir), in nfs3_proc_rename() 350 status = rpc_call(NFS_CLIENT(old_dir), NFS3PROC_RENAME, &arg, &res, 0); in nfs3_proc_rename() 351 nfs_refresh_inode(old_dir, &old_dir_attr); in nfs3_proc_rename()
|
/linux-2.4.37.9/fs/umsdos/ |
D | namei.c | 342 static int umsdos_rename_f (struct inode *old_dir, struct dentry *old_dentry, in umsdos_rename_f() argument 368 umsdos_lockcreate2 (old_dir, new_dir); in umsdos_rename_f() 425 ret = msdos_rename (old_dir, old, new_dir, new); in umsdos_rename_f() 463 umsdos_unlockcreate (old_dir); in umsdos_rename_f() 1104 int UMSDOS_rename (struct inode *old_dir, struct dentry *old_dentry, in UMSDOS_rename() argument 1128 ret = umsdos_rename_f(old_dir, old_dentry, new_dir, new_dentry, 0); in UMSDOS_rename()
|