Lines Matching refs:old_inode
941 struct inode *old_inode = d_inode(old_dentry); in f2fs_rename() local
1003 if (S_ISDIR(old_inode->i_mode)) { in f2fs_rename()
1004 old_dir_entry = f2fs_parent_dir(old_inode, &old_dir_page); in f2fs_rename()
1035 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_rename()
1054 err = f2fs_add_link(new_dentry, old_inode); in f2fs_rename()
1064 f2fs_down_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
1066 file_lost_pino(old_inode); in f2fs_rename()
1069 f2fs_i_pino_write(old_inode, new_dir->i_ino); in f2fs_rename()
1070 f2fs_up_write(&F2FS_I(old_inode)->i_sem); in f2fs_rename()
1072 old_inode->i_ctime = current_time(old_inode); in f2fs_rename()
1073 f2fs_mark_inode_dirty_sync(old_inode, false); in f2fs_rename()
1093 f2fs_set_link(old_inode, old_dir_entry, in f2fs_rename()
1101 if (S_ISDIR(old_inode->i_mode)) in f2fs_rename()
1102 f2fs_add_ino_entry(sbi, old_inode->i_ino, in f2fs_rename()
1131 struct inode *old_inode = d_inode(old_dentry); in f2fs_cross_rename() local
1178 if (S_ISDIR(old_inode->i_mode)) { in f2fs_cross_rename()
1179 old_dir_entry = f2fs_parent_dir(old_inode, in f2fs_cross_rename()
1220 f2fs_set_link(old_inode, old_dir_entry, old_dir_page, new_dir); in f2fs_cross_rename()
1229 f2fs_down_write(&F2FS_I(old_inode)->i_sem); in f2fs_cross_rename()
1231 file_lost_pino(old_inode); in f2fs_cross_rename()
1234 f2fs_i_pino_write(old_inode, new_dir->i_ino); in f2fs_cross_rename()
1235 f2fs_up_write(&F2FS_I(old_inode)->i_sem); in f2fs_cross_rename()
1246 f2fs_set_link(new_dir, new_entry, new_page, old_inode); in f2fs_cross_rename()