• Home
  • Raw
  • Download

Lines Matching refs:old_dir

683 	struct inode *old_dir = d_inode(old_dentry->d_parent);  in ocfs2_link()  local
707 err = ocfs2_double_lock(osb, &old_dir_bh, old_dir, in ocfs2_link()
733 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_link()
826 ocfs2_double_unlock(old_dir, dir); in ocfs2_link()
1196 static int ocfs2_rename(struct inode *old_dir, in ocfs2_rename() argument
1216 u32 old_dir_nlink = old_dir->i_nlink; in ocfs2_rename()
1231 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1235 status = dquot_initialize(old_dir); in ocfs2_rename()
1246 osb = OCFS2_SB(old_dir->i_sb); in ocfs2_rename()
1264 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1289 status = ocfs2_double_lock(osb, &old_dir_bh, old_dir, in ocfs2_rename()
1348 if (old_inode_parent != OCFS2_I(old_dir)->ip_blkno) { in ocfs2_rename()
1353 if (!new_inode && new_dir != old_dir && in ocfs2_rename()
1360 status = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_rename()
1564 old_dentry->d_name.len, old_dir, in ocfs2_rename()
1576 status = ocfs2_delete_entry(handle, old_dir, &old_entry_lookup); in ocfs2_rename()
1592 old_dir->i_ctime = old_dir->i_mtime = current_time(old_dir); in ocfs2_rename()
1597 drop_nlink(old_dir); in ocfs2_rename()
1605 mark_inode_dirty(old_dir); in ocfs2_rename()
1606 ocfs2_mark_inode_dirty(handle, old_dir, old_dir_bh); in ocfs2_rename()
1612 if (old_dir != new_dir) { in ocfs2_rename()
1614 new_dir->i_ctime = new_dir->i_mtime = old_dir->i_ctime; in ocfs2_rename()
1623 if (old_dir_nlink != old_dir->i_nlink) { in ocfs2_rename()
1627 (unsigned long long)OCFS2_I(old_dir)->ip_blkno, in ocfs2_rename()
1628 (int)old_dir_nlink, old_dir->i_nlink); in ocfs2_rename()
1632 INODE_CACHE(old_dir), in ocfs2_rename()
1636 ocfs2_set_links_count(fe, old_dir->i_nlink); in ocfs2_rename()
1640 ocfs2_dentry_move(old_dentry, new_dentry, old_dir, new_dir); in ocfs2_rename()
1660 ocfs2_double_unlock(old_dir, new_dir); in ocfs2_rename()