Commit f3e509dd authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Chandan Babu R
Browse files

xfs: invert a check in xfs_rtallocate_extent_block



Doing a break in the else side of a conditional is rather silly.  Invert
the check, break ASAP and unindent the other leg.

Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Reviewed-by: default avatar"Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: default avatarChandan Babu R <chandanbabu@kernel.org>
parent b271b314
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -283,12 +283,11 @@ xfs_rtallocate_extent_block(
		/*
		 * If not done yet, find the start of the next free space.
		 */
		if (next < end) {
		if (next >= end)
			break;
		error = xfs_rtfind_forw(args, next, end, &i);
		if (error)
			return error;
		} else
			break;
	}
	/*
	 * Searched the whole thing & didn't find a maxlen free extent.