Lines Matching refs:old_dir
429 static int do_msdos_rename(struct inode *old_dir, unsigned char *old_name, in do_msdos_rename() argument
446 err = fat_scan(old_dir, old_name, &old_sinfo); in do_msdos_rename()
453 update_dotdot = (is_dir && old_dir != new_dir); in do_msdos_rename()
474 if (IS_DIRSYNC(old_dir)) { in do_msdos_rename()
483 old_dir->i_version++; in do_msdos_rename()
484 old_dir->i_ctime = old_dir->i_mtime = CURRENT_TIME_SEC; in do_msdos_rename()
485 if (IS_DIRSYNC(old_dir)) in do_msdos_rename()
486 (void)fat_sync_inode(old_dir); in do_msdos_rename()
488 mark_inode_dirty(old_dir); in do_msdos_rename()
534 drop_nlink(old_dir); in do_msdos_rename()
539 err = fat_remove_entries(old_dir, &old_sinfo); /* and releases bh */ in do_msdos_rename()
543 old_dir->i_version++; in do_msdos_rename()
544 old_dir->i_ctime = old_dir->i_mtime = ts; in do_msdos_rename()
545 if (IS_DIRSYNC(old_dir)) in do_msdos_rename()
546 (void)fat_sync_inode(old_dir); in do_msdos_rename()
548 mark_inode_dirty(old_dir); in do_msdos_rename()
567 fat_set_start(dotdot_de, MSDOS_I(old_dir)->i_logstart); in do_msdos_rename()
598 static int msdos_rename(struct inode *old_dir, struct dentry *old_dentry, in msdos_rename() argument
601 struct super_block *sb = old_dir->i_sb; in msdos_rename()
609 &MSDOS_SB(old_dir->i_sb)->options); in msdos_rename()
621 err = do_msdos_rename(old_dir, old_msdos_name, old_dentry, in msdos_rename()
626 err = fat_flush_inodes(sb, old_dir, new_dir); in msdos_rename()