• Home
  • Raw
  • Download

Lines Matching refs:old_dir

679 	struct inode *old_dir = d_inode(old_dentry->d_parent);  in ocfs2_link()  local
703 err = ocfs2_double_lock(osb, &old_dir_bh, old_dir, in ocfs2_link()
729 err = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_link()
822 ocfs2_double_unlock(old_dir, dir); in ocfs2_link()
1192 static int ocfs2_rename(struct inode *old_dir, in ocfs2_rename() argument
1212 u32 old_dir_nlink = old_dir->i_nlink; in ocfs2_rename()
1227 trace_ocfs2_rename(old_dir, old_dentry, new_dir, new_dentry, in ocfs2_rename()
1231 status = dquot_initialize(old_dir); in ocfs2_rename()
1242 osb = OCFS2_SB(old_dir->i_sb); in ocfs2_rename()
1260 if (old_dir != new_dir && S_ISDIR(old_inode->i_mode)) { in ocfs2_rename()
1285 status = ocfs2_double_lock(osb, &old_dir_bh, old_dir, in ocfs2_rename()
1344 if (old_inode_parent != OCFS2_I(old_dir)->ip_blkno) { in ocfs2_rename()
1349 if (!new_inode && new_dir != old_dir && in ocfs2_rename()
1356 status = ocfs2_lookup_ino_from_name(old_dir, old_dentry->d_name.name, in ocfs2_rename()
1556 old_dentry->d_name.len, old_dir, in ocfs2_rename()
1568 status = ocfs2_delete_entry(handle, old_dir, &old_entry_lookup); in ocfs2_rename()
1584 old_dir->i_ctime = old_dir->i_mtime = current_time(old_dir); in ocfs2_rename()
1589 drop_nlink(old_dir); in ocfs2_rename()
1597 mark_inode_dirty(old_dir); in ocfs2_rename()
1598 ocfs2_mark_inode_dirty(handle, old_dir, old_dir_bh); in ocfs2_rename()
1604 if (old_dir != new_dir) { in ocfs2_rename()
1606 new_dir->i_ctime = new_dir->i_mtime = old_dir->i_ctime; in ocfs2_rename()
1615 if (old_dir_nlink != old_dir->i_nlink) { in ocfs2_rename()
1619 (unsigned long long)OCFS2_I(old_dir)->ip_blkno, in ocfs2_rename()
1620 (int)old_dir_nlink, old_dir->i_nlink); in ocfs2_rename()
1624 INODE_CACHE(old_dir), in ocfs2_rename()
1628 ocfs2_set_links_count(fe, old_dir->i_nlink); in ocfs2_rename()
1632 ocfs2_dentry_move(old_dentry, new_dentry, old_dir, new_dir); in ocfs2_rename()
1652 ocfs2_double_unlock(old_dir, new_dir); in ocfs2_rename()