/* If inode1 or inode2 is NULL, return -EIO. Otherwise, return 0.  */
static int mext_check_null_inode(struct inode *inode1, struct inode *inode2, const char *function)
/* If inode1 or inode2 is NULL, return -EIO. Otherwise, return 0.  */
static int mext_check_null_inode(struct inode *inode1, struct inode *inode2, const char *function)
{
	int ret = 0;
	if (inode1 == NULL) {
		ext4_error(inode2->i_sb, function,
			"Both inodes should not be NULL: "
			"inode1 NULL inode2 %lu", inode2->i_ino);
		ret = -EIO;
	} else if (inode2 == NULL) {
		ext4_error(inode1->i_sb, function,
			"Both inodes should not be NULL: "
			"inode1 %lu inode2 NULL", inode1->i_ino);
		ret = -EIO;
	}
	return ret;
}