Lines Matching refs:p1
2902 struct dentry *lock_rename(struct dentry *p1, struct dentry *p2) in lock_rename() argument
2906 if (p1 == p2) { in lock_rename()
2907 inode_lock_nested(p1->d_inode, I_MUTEX_PARENT); in lock_rename()
2911 mutex_lock(&p1->d_sb->s_vfs_rename_mutex); in lock_rename()
2913 p = d_ancestor(p2, p1); in lock_rename()
2916 inode_lock_nested(p1->d_inode, I_MUTEX_CHILD); in lock_rename()
2920 p = d_ancestor(p1, p2); in lock_rename()
2922 inode_lock_nested(p1->d_inode, I_MUTEX_PARENT); in lock_rename()
2927 inode_lock_nested(p1->d_inode, I_MUTEX_PARENT); in lock_rename()
2933 void unlock_rename(struct dentry *p1, struct dentry *p2) in unlock_rename() argument
2935 inode_unlock(p1->d_inode); in unlock_rename()
2936 if (p1 != p2) { in unlock_rename()
2938 mutex_unlock(&p1->d_sb->s_vfs_rename_mutex); in unlock_rename()