Searched refs:inode2 (Results 1 – 4 of 4) sorted by relevance
/fs/ |
D | inode.c | 1438 void inode_double_lock(struct inode *inode1, struct inode *inode2) in inode_double_lock() argument 1440 if (inode1 == NULL || inode2 == NULL || inode1 == inode2) { in inode_double_lock() 1443 else if (inode2) in inode_double_lock() 1444 mutex_lock(&inode2->i_mutex); in inode_double_lock() 1448 if (inode1 < inode2) { in inode_double_lock() 1450 mutex_lock_nested(&inode2->i_mutex, I_MUTEX_CHILD); in inode_double_lock() 1452 mutex_lock_nested(&inode2->i_mutex, I_MUTEX_PARENT); in inode_double_lock() 1458 void inode_double_unlock(struct inode *inode1, struct inode *inode2) in inode_double_unlock() argument 1463 if (inode2 && inode2 != inode1) in inode_double_unlock() 1464 mutex_unlock(&inode2->i_mutex); in inode_double_unlock()
|
/fs/ubifs/ |
D | dir.c | 493 static void lock_2_inodes(struct inode *inode1, struct inode *inode2) in lock_2_inodes() argument 496 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_2_inodes() 504 static void unlock_2_inodes(struct inode *inode1, struct inode *inode2) in unlock_2_inodes() argument 506 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_2_inodes() 941 static void lock_3_inodes(struct inode *inode1, struct inode *inode2, in lock_3_inodes() argument 945 if (inode2 != inode1) in lock_3_inodes() 946 mutex_lock_nested(&ubifs_inode(inode2)->ui_mutex, WB_MUTEX_2); in lock_3_inodes() 957 static void unlock_3_inodes(struct inode *inode1, struct inode *inode2, in unlock_3_inodes() argument 962 if (inode1 != inode2) in unlock_3_inodes() 963 mutex_unlock(&ubifs_inode(inode2)->ui_mutex); in unlock_3_inodes()
|
D | ubifs.h | 1482 const struct inode *inode2);
|
/fs/ocfs2/ |
D | namei.c | 936 struct inode *inode2) in ocfs2_double_lock() argument 940 struct ocfs2_inode_info *oi2 = OCFS2_I(inode2); in ocfs2_double_lock() 962 tmpinode = inode2; in ocfs2_double_lock() 963 inode2 = inode1; in ocfs2_double_lock() 967 status = ocfs2_inode_lock(inode2, bh2, 1); in ocfs2_double_lock() 983 ocfs2_inode_unlock(inode2, 1); in ocfs2_double_lock() 994 static void ocfs2_double_unlock(struct inode *inode1, struct inode *inode2) in ocfs2_double_unlock() argument 998 if (inode1 != inode2) in ocfs2_double_unlock() 999 ocfs2_inode_unlock(inode2, 1); in ocfs2_double_unlock()
|