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

12

/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/msdos/
H A Dnamei.c444 static int do_msdos_rename(struct inode *old_dir, unsigned char *old_name, argument
461 err = fat_scan(old_dir, old_name, &old_sinfo);
468 update_dotdot = (is_dir && old_dir != new_dir);
490 if (IS_DIRSYNC(old_dir)) {
499 old_dir->i_version++;
500 old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME_SEC;
501 if (IS_DIRSYNC(old_dir))
502 (void)fat_sync_inode(old_dir);
504 mark_inode_dirty(old_dir);
618 msdos_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ocfs2/
H A Ddcache.h54 struct inode *old_dir, struct inode *new_dir);
H A Dnamei.c1056 static int ocfs2_rename(struct inode *old_dir, argument
1082 nlink_t old_dir_nlink = old_dir->i_nlink;
1088 old_dir, old_dentry, new_dir, new_dentry,
1092 osb = OCFS2_SB(old_dir->i_sb);
1120 status = ocfs2_double_lock(osb, &old_dir_bh, old_dir,
1168 OCFS2_I(old_dir)->ip_blkno)
1171 if (!new_inode && new_dir!=old_dir &&
1179 old_dir, &old_de);
1360 status = ocfs2_delete_entry(handle, old_dir, old_de, old_de_bh);
1370 old_dir
[all...]
H A Ddcache.c378 struct inode *old_dir, struct inode *new_dir)
381 struct ocfs2_super *osb = OCFS2_SB(old_dir->i_sb);
384 if (old_dir == new_dir)
377 ocfs2_dentry_move(struct dentry *dentry, struct dentry *target, struct inode *old_dir, struct inode *new_dir) argument
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/reiserfs/
H A Dnamei.c1220 static int reiserfs_rename(struct inode *old_dir, struct dentry *old_dentry, argument
1246 4 * REISERFS_QUOTA_TRANS_BLOCKS(old_dir->i_sb);
1254 reiserfs_write_lock(old_dir->i_sb);
1256 reiserfs_find_entry(old_dir, old_dentry->d_name.name,
1261 reiserfs_write_unlock(old_dir->i_sb);
1266 reiserfs_write_unlock(old_dir->i_sb);
1278 reiserfs_write_unlock(old_dir->i_sb);
1292 reiserfs_write_unlock(old_dir->i_sb);
1296 /* inode number of .. must equal old_dir->i_ino */
1297 if (dot_dot_de.de_objectid != old_dir
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/include/linux/
H A Dfsnotify.h40 * fsnotify_move - file old_name at old_dir was moved to new_name at new_dir
42 static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, argument
48 if (old_dir == new_dir)
49 inode_dir_notify(old_dir, DN_RENAME);
51 inode_dir_notify(old_dir, DN_DELETE);
57 inotify_inode_queue_event(old_dir, IN_MOVED_FROM|isdir,cookie,old_name,
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/jfs/
H A Dnamei.c1059 static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry, argument
1095 rc = dtSearch(old_dir, &old_dname, &ino, &btstack, JFS_LOOKUP);
1124 } else if ((new_dir != old_dir) &&
1144 * Here, the vfs has already taken i_mutex on both old_dir and new_dir.
1148 if (old_dir != new_dir)
1149 mutex_lock_nested(&JFS_IP(old_dir)->commit_mutex,
1168 if (old_dir != new_dir)
1169 mutex_unlock(&JFS_IP(old_dir)->commit_mutex);
1223 rc = dtDelete(tid, old_dir, &old_dname, &ino, JFS_REMOVE);
1231 drop_nlink(old_dir);
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/affs/
H A Dnamei.c397 affs_rename(struct inode *old_dir, struct dentry *old_dentry, argument
400 struct super_block *sb = old_dir->i_sb;
405 (u32)old_dir->i_ino, (int)old_dentry->d_name.len, old_dentry->d_name.name,
424 affs_lock_dir(old_dir);
425 retval = affs_remove_hash(old_dir, bh);
426 affs_unlock_dir(old_dir);
436 /* TODO: move it back to old_dir, if error? */
439 mark_buffer_dirty_inode(bh, retval ? old_dir : new_dir);
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/hpfs/
H A Dnamei.c545 static int hpfs_rename(struct inode *old_dir, struct dentry *old_dentry, argument
571 mutex_lock(&hpfs_i(old_dir)->i_mutex);
572 if (new_dir != old_dir)
581 if (!(dep = map_dirent(old_dir, hpfs_i(old_dir)->i_dno, (char *)old_name, old_len, &dno, &qbh))) {
591 if ((r = hpfs_remove_dirent(old_dir, dno, dep, &qbh, 1)) != 2) {
608 if (new_dir == old_dir) hpfs_brelse4(&qbh);
615 if (new_dir != old_dir) hpfs_brelse4(&qbh);
619 if (new_dir == old_dir)
620 if (!(dep = map_dirent(old_dir, hpfs_
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ufs/
H A Dnamei.c273 static int ufs_rename(struct inode *old_dir, struct dentry *old_dentry, argument
284 old_de = ufs_find_entry(old_dir, old_dentry, &old_page);
336 ufs_delete_entry(old_dir, old_de, old_page);
341 inode_dec_link_count(old_dir);
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/minix/
H A Dnamei.c213 static int minix_rename(struct inode * old_dir, struct dentry *old_dentry, argument
216 struct minix_sb_info * info = minix_sb(old_dir->i_sb);
275 inode_dec_link_count(old_dir);
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/vfat/
H A Dnamei.c867 static int vfat_rename(struct inode *old_dir, struct dentry *old_dentry, argument
882 err = vfat_find(old_dir, &old_dentry->d_name, &old_sinfo);
887 update_dotdot = (is_dir && old_dir != new_dir);
933 drop_nlink(old_dir);
938 err = fat_remove_entries(old_dir, &old_sinfo); /* and releases bh */
942 old_dir->i_version++;
943 old_dir->i_ctime = old_dir->i_mtime = ts;
944 if (IS_DIRSYNC(old_dir))
945 (void)fat_sync_inode(old_dir);
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/bfs/
H A Ddir.c208 static int bfs_rename(struct inode * old_dir, struct dentry * old_dentry, argument
222 old_bh = bfs_find_entry(old_dir,
247 old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME_SEC;
248 mark_inode_dirty(old_dir);
/netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/timemachine/netatalk-2.2.0/libatalk/util/
H A Dftw.c173 struct dir_data *old_dir) internal_function;
480 ftw_dir (struct ftw_data *data, struct STAT *st, struct dir_data *old_dir) argument
490 result = open_dir_stream (old_dir == NULL ? NULL : &old_dir->streamfd,
597 if (old_dir
605 if (old_dir->stream != NULL)
606 if (__fchdir (dirfd (old_dir->stream)) == 0)
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/
H A Dnamei.c2348 static int vfs_rename_dir(struct inode *old_dir, struct dentry *old_dentry, argument
2358 if (new_dir != old_dir) {
2364 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry);
2376 error = old_dir->i_op->rename(old_dir, old_dentry, new_dir, new_dentry);
2386 if (!(old_dir->i_sb->s_type->fs_flags & FS_RENAME_DOES_D_MOVE))
2391 static int vfs_rename_other(struct inode *old_dir, struct dentry *old_dentry, argument
2397 error = security_inode_rename(old_dir, old_dentry, new_dir, new_dentry);
2408 error = old_dir->i_op->rename(old_dir, old_dentr
2419 vfs_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry) argument
2466 struct dentry * old_dir, * new_dir; local
[all...]
H A Dlibfs.c306 int simple_rename(struct inode *old_dir, struct dentry *old_dentry, argument
318 drop_nlink(old_dir);
320 drop_nlink(old_dir);
324 old_dir->i_ctime = old_dir->i_mtime = new_dir->i_ctime =
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ext2/
H A Dnamei.c291 static int ext2_rename (struct inode * old_dir, struct dentry * old_dentry, argument
302 old_de = ext2_find_entry (old_dir, old_dentry, &old_page);
359 inode_dec_link_count(old_dir);
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/hfs/
H A Ddir.c283 static int hfs_rename(struct inode *old_dir, struct dentry *old_dentry, argument
296 old_dir, &old_dentry->d_name,
299 hfs_cat_build_key(old_dir->i_sb,
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/sysv/
H A Dnamei.c214 static int sysv_rename(struct inode * old_dir, struct dentry * old_dentry, argument
275 inode_dec_link_count(old_dir);
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/coda/
H A Ddir.c405 static int coda_rename(struct inode *old_dir, struct dentry *old_dentry, argument
418 error = venus_rename(old_dir->i_sb, coda_i2f(old_dir),
427 coda_dir_changed(old_dir, -link_adjust);
431 coda_flag_inode(old_dir, C_VATTR);
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ncpfs/
H A Dncplib_kernel.c897 struct inode *old_dir, char *old_name, __le16 old_type,
902 if ((old_dir == NULL) || (old_name == NULL) ||
908 ncp_add_byte(server, server->name_space[NCP_FINFO(old_dir)->volNumber]);
913 ncp_add_byte(server, NCP_FINFO(old_dir)->volNumber);
914 ncp_add_dword(server, NCP_FINFO(old_dir)->dirEntNum);
936 struct inode *old_dir, char *old_name,
943 result = ncp_RenameNSEntry(server, old_dir, old_name, old_type,
948 result = ncp_RenameNSEntry(server, old_dir, old_name, old_type,
954 result = ncp_RenameNSEntry(server, old_dir, old_name, old_type,
896 ncp_RenameNSEntry(struct ncp_server *server, struct inode *old_dir, char *old_name, __le16 old_type, struct inode *new_dir, char *new_name) argument
935 ncp_ren_or_mov_file_or_subdir(struct ncp_server *server, struct inode *old_dir, char *old_name, struct inode *new_dir, char *new_name) argument
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/nfs/
H A Dproc.c323 nfs_proc_rename(struct inode *old_dir, struct qstr *old_name, argument
327 .fromfh = NFS_FH(old_dir),
341 status = rpc_call_sync(NFS_CLIENT(old_dir), &msg, 0);
342 nfs_mark_for_revalidate(old_dir);
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ext3/
H A Dnamei.c2199 static int ext3_rename (struct inode * old_dir, struct dentry *old_dentry, argument
2214 handle = ext3_journal_start(old_dir, 2 *
2215 EXT3_DATA_TRANS_BLOCKS(old_dir->i_sb) +
2220 if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
2253 if (le32_to_cpu(PARENT_INO(dir_bh->b_data)) != old_dir->i_ino)
2256 if (!new_inode && new_dir!=old_dir &&
2291 (retval = ext3_delete_entry(handle, old_dir,
2302 retval = ext3_delete_entry(handle, old_dir,
2308 ext3_warning(old_dir->i_sb, "ext3_rename",
2310 old_dir
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/ext4/
H A Dnamei.c2197 static int ext4_rename (struct inode * old_dir, struct dentry *old_dentry, argument
2212 handle = ext4_journal_start(old_dir, 2 *
2213 EXT4_DATA_TRANS_BLOCKS(old_dir->i_sb) +
2218 if (IS_DIRSYNC(old_dir) || IS_DIRSYNC(new_dir))
2251 if (le32_to_cpu(PARENT_INO(dir_bh->b_data)) != old_dir->i_ino)
2254 if (!new_inode && new_dir!=old_dir &&
2289 (retval = ext4_delete_entry(handle, old_dir,
2300 retval = ext4_delete_entry(handle, old_dir,
2306 ext4_warning(old_dir->i_sb, "ext4_rename",
2308 old_dir
[all...]
/netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/udf/
H A Dnamei.c1163 static int udf_rename (struct inode * old_dir, struct dentry * old_dentry, argument
1175 if ((ofi = udf_find_entry(old_dir, old_dentry, &ofibh, &ocfi)))
1182 if (!ofi || udf_get_lb_pblock(old_dir->i_sb, tloc, 0)
1227 != old_dir->i_ino)
1257 ofi = udf_find_entry(old_dir, old_dentry, &ofibh, &ocfi);
1258 udf_delete_entry(old_dir, ofi, &ofibh, &ocfi);
1265 old_dir->i_ctime = old_dir->i_mtime = current_fs_time(old_dir->i_sb);
1266 mark_inode_dirty(old_dir);
[all...]

Completed in 302 milliseconds

12