Lines Matching refs:p1
2844 struct dentry *lock_rename(struct dentry *p1, struct dentry *p2) in lock_rename() argument
2848 if (p1 == p2) { in lock_rename()
2849 inode_lock_nested(p1->d_inode, I_MUTEX_PARENT); in lock_rename()
2853 mutex_lock(&p1->d_sb->s_vfs_rename_mutex); in lock_rename()
2855 p = d_ancestor(p2, p1); in lock_rename()
2858 inode_lock_nested(p1->d_inode, I_MUTEX_PARENT2); in lock_rename()
2862 p = d_ancestor(p1, p2); in lock_rename()
2863 inode_lock_nested(p1->d_inode, I_MUTEX_PARENT); in lock_rename()
2869 void unlock_rename(struct dentry *p1, struct dentry *p2) in unlock_rename() argument
2871 inode_unlock(p1->d_inode); in unlock_rename()
2872 if (p1 != p2) { in unlock_rename()
2874 mutex_unlock(&p1->d_sb->s_vfs_rename_mutex); in unlock_rename()