Lines Matching refs:old_inode
434 struct inode *old_inode, *new_inode; in do_msdos_rename() local
441 old_inode = d_inode(old_dentry); in do_msdos_rename()
450 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
453 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in do_msdos_rename()
459 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename()
469 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
471 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
473 err = fat_sync_inode(old_inode); in do_msdos_rename()
475 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()
479 mark_inode_dirty(old_inode); in do_msdos_rename()
491 ts = current_time(old_inode); in do_msdos_rename()
511 fat_detach(old_inode); in do_msdos_rename()
512 fat_attach(old_inode, new_i_pos); in do_msdos_rename()
514 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
516 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
518 err = fat_sync_inode(old_inode); in do_msdos_rename()
522 mark_inode_dirty(old_inode); in do_msdos_rename()
526 mark_buffer_dirty_inode(dotdot_bh, old_inode); in do_msdos_rename()
566 mark_buffer_dirty_inode(dotdot_bh, old_inode); in do_msdos_rename()
570 fat_detach(old_inode); in do_msdos_rename()
571 fat_attach(old_inode, old_sinfo.i_pos); in do_msdos_rename()
572 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()