Lines Matching refs:old_dir
427 static int do_msdos_rename(struct inode *old_dir, unsigned char *old_name,
444 err = fat_scan(old_dir, old_name, &old_sinfo);
451 update_dotdot = (is_dir && old_dir != new_dir);
472 if (IS_DIRSYNC(old_dir)) {
481 inode_inc_iversion(old_dir);
482 fat_truncate_time(old_dir, NULL, S_CTIME|S_MTIME);
483 if (IS_DIRSYNC(old_dir))
484 (void)fat_sync_inode(old_dir);
486 mark_inode_dirty(old_dir);
532 drop_nlink(old_dir);
537 err = fat_remove_entries(old_dir, &old_sinfo); /* and releases bh */
541 inode_inc_iversion(old_dir);
542 fat_truncate_time(old_dir, &ts, S_CTIME|S_MTIME);
543 if (IS_DIRSYNC(old_dir))
544 (void)fat_sync_inode(old_dir);
546 mark_inode_dirty(old_dir);
565 fat_set_start(dotdot_de, MSDOS_I(old_dir)->i_logstart);
596 static int msdos_rename(struct inode *old_dir, struct dentry *old_dentry,
600 struct super_block *sb = old_dir->i_sb;
611 &MSDOS_SB(old_dir->i_sb)->options);
623 err = do_msdos_rename(old_dir, old_msdos_name, old_dentry,
628 err = fat_flush_inodes(sb, old_dir, new_dir);