Lines Matching refs:old_inode
436 struct inode *old_inode, *new_inode; in do_msdos_rename() local
443 old_inode = d_inode(old_dentry); in do_msdos_rename()
452 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
455 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in do_msdos_rename()
461 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename()
471 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
473 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
475 err = fat_sync_inode(old_inode); in do_msdos_rename()
477 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()
481 mark_inode_dirty(old_inode); in do_msdos_rename()
493 ts = current_time(old_inode); in do_msdos_rename()
513 fat_detach(old_inode); in do_msdos_rename()
514 fat_attach(old_inode, new_i_pos); in do_msdos_rename()
516 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
518 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
520 err = fat_sync_inode(old_inode); in do_msdos_rename()
524 mark_inode_dirty(old_inode); in do_msdos_rename()
528 mark_buffer_dirty_inode(dotdot_bh, old_inode); in do_msdos_rename()
568 mark_buffer_dirty_inode(dotdot_bh, old_inode); in do_msdos_rename()
572 fat_detach(old_inode); in do_msdos_rename()
573 fat_attach(old_inode, old_sinfo.i_pos); in do_msdos_rename()
574 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()