Lines Matching refs:old_inode
452 struct inode *old_inode, *new_inode; in do_msdos_rename() local
459 old_inode = old_dentry->d_inode; in do_msdos_rename()
468 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
471 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de, in do_msdos_rename()
478 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename()
488 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
490 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
492 err = fat_sync_inode(old_inode); in do_msdos_rename()
494 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()
498 mark_inode_dirty(old_inode); in do_msdos_rename()
530 fat_detach(old_inode); in do_msdos_rename()
531 fat_attach(old_inode, new_i_pos); in do_msdos_rename()
533 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
535 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
537 err = fat_sync_inode(old_inode); in do_msdos_rename()
541 mark_inode_dirty(old_inode); in do_msdos_rename()
593 fat_detach(old_inode); in do_msdos_rename()
594 fat_attach(old_inode, old_sinfo.i_pos); in do_msdos_rename()
595 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()