mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 17:44:14 +08:00
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: Christoph Hellwig <hch@lst.de> Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
This commit is contained in:
parent
b271b31411
commit
f3e509dd45
@ -283,12 +283,11 @@ xfs_rtallocate_extent_block(
|
|||||||
/*
|
/*
|
||||||
* If not done yet, find the start of the next free space.
|
* If not done yet, find the start of the next free space.
|
||||||
*/
|
*/
|
||||||
if (next < end) {
|
if (next >= end)
|
||||||
error = xfs_rtfind_forw(args, next, end, &i);
|
|
||||||
if (error)
|
|
||||||
return error;
|
|
||||||
} else
|
|
||||||
break;
|
break;
|
||||||
|
error = xfs_rtfind_forw(args, next, end, &i);
|
||||||
|
if (error)
|
||||||
|
return error;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Searched the whole thing & didn't find a maxlen free extent.
|
* Searched the whole thing & didn't find a maxlen free extent.
|
||||||
|
Loading…
Reference in New Issue
Block a user