Lines Matching defs:inode2
147 * If inode1 or inode2 is NULL, return -EIO. Otherwise, return 0.
150 mext_check_null_inode(struct inode *inode1, struct inode *inode2,
156 __ext4_error(inode2->i_sb, function, line,
158 "inode1 NULL inode2 %lu", inode2->i_ino);
160 } else if (inode2 == NULL) {
163 "inode1 %lu inode2 NULL", inode1->i_ino);
1072 * mext_inode_double_lock - Lock i_mutex on both @inode1 and @inode2
1075 * @inode2: the inode structure
1078 * If inode1 or inode2 is NULL, return -EIO. Otherwise, return 0.
1081 mext_inode_double_lock(struct inode *inode1, struct inode *inode2)
1085 BUG_ON(inode1 == NULL && inode2 == NULL);
1087 ret = mext_check_null_inode(inode1, inode2, __func__, __LINE__);
1091 if (inode1 == inode2) {
1096 if (inode1->i_ino < inode2->i_ino) {
1098 mutex_lock_nested(&inode2->i_mutex, I_MUTEX_CHILD);
1100 mutex_lock_nested(&inode2->i_mutex, I_MUTEX_PARENT);
1109 * mext_inode_double_unlock - Release i_mutex on both @inode1 and @inode2
1112 * @inode2: the inode that is released second
1114 * If inode1 or inode2 is NULL, return -EIO. Otherwise, return 0.
1118 mext_inode_double_unlock(struct inode *inode1, struct inode *inode2)
1122 BUG_ON(inode1 == NULL && inode2 == NULL);
1124 ret = mext_check_null_inode(inode1, inode2, __func__, __LINE__);
1131 if (inode2 && inode2 != inode1)
1132 mutex_unlock(&inode2->i_mutex);