Lines Matching refs:old_inode
435 struct inode *old_inode, *new_inode; in do_msdos_rename() local
442 old_inode = d_inode(old_dentry); in do_msdos_rename()
451 is_dir = S_ISDIR(old_inode->i_mode); in do_msdos_rename()
454 if (fat_get_dotdot_entry(old_inode, &dotdot_bh, &dotdot_de)) { in do_msdos_rename()
460 old_attrs = MSDOS_I(old_inode)->i_attrs; in do_msdos_rename()
470 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
472 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
474 err = fat_sync_inode(old_inode); in do_msdos_rename()
476 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()
480 mark_inode_dirty(old_inode); in do_msdos_rename()
492 ts = current_time(old_inode); in do_msdos_rename()
512 fat_detach(old_inode); in do_msdos_rename()
513 fat_attach(old_inode, new_i_pos); in do_msdos_rename()
515 MSDOS_I(old_inode)->i_attrs |= ATTR_HIDDEN; in do_msdos_rename()
517 MSDOS_I(old_inode)->i_attrs &= ~ATTR_HIDDEN; in do_msdos_rename()
519 err = fat_sync_inode(old_inode); in do_msdos_rename()
523 mark_inode_dirty(old_inode); in do_msdos_rename()
527 mark_buffer_dirty_inode(dotdot_bh, old_inode); in do_msdos_rename()
567 mark_buffer_dirty_inode(dotdot_bh, old_inode); in do_msdos_rename()
571 fat_detach(old_inode); in do_msdos_rename()
572 fat_attach(old_inode, old_sinfo.i_pos); in do_msdos_rename()
573 MSDOS_I(old_inode)->i_attrs = old_attrs; in do_msdos_rename()