Lines Matching refs:p1
2472 * p1 and p2 should be directories on the same fs.
2474 struct dentry *lock_rename(struct dentry *p1, struct dentry *p2)
2478 if (p1 == p2) {
2479 mutex_lock_nested(&p1->d_inode->i_mutex, I_MUTEX_PARENT);
2483 mutex_lock(&p1->d_inode->i_sb->s_vfs_rename_mutex);
2485 p = d_ancestor(p2, p1);
2488 mutex_lock_nested(&p1->d_inode->i_mutex, I_MUTEX_CHILD);
2492 p = d_ancestor(p1, p2);
2494 mutex_lock_nested(&p1->d_inode->i_mutex, I_MUTEX_PARENT);
2499 mutex_lock_nested(&p1->d_inode->i_mutex, I_MUTEX_PARENT);
2505 void unlock_rename(struct dentry *p1, struct dentry *p2)
2507 mutex_unlock(&p1->d_inode->i_mutex);
2508 if (p1 != p2) {
2510 mutex_unlock(&p1->d_inode->i_sb->s_vfs_rename_mutex);