Commit 26e5eed
xfs: reorder the minlen and prod calculations in xfs_bmap_rtalloc
xfs_bmap_rtalloc is a bit of a mess in terms of calculating the locally
need variables. Reorder them a bit so that related code is located
next to each other - the raminlen calculation moves up next to where
the maximum len is calculated, and all the prod calculation is move
into a single place and rearranged so that the real prod calculation
only happens when it actually is needed.
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>1 parent a39f5cc commit 26e5eed
1 file changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1375 | 1375 | | |
1376 | 1376 | | |
1377 | 1377 | | |
1378 | | - | |
1379 | 1378 | | |
1380 | 1379 | | |
1381 | 1380 | | |
| |||
1393 | 1392 | | |
1394 | 1393 | | |
1395 | 1394 | | |
1396 | | - | |
1397 | | - | |
1398 | | - | |
1399 | | - | |
1400 | | - | |
1401 | | - | |
1402 | | - | |
1403 | 1395 | | |
1404 | 1396 | | |
1405 | 1397 | | |
| |||
1410 | 1402 | | |
1411 | 1403 | | |
1412 | 1404 | | |
| 1405 | + | |
1413 | 1406 | | |
1414 | 1407 | | |
1415 | 1408 | | |
| |||
1438 | 1431 | | |
1439 | 1432 | | |
1440 | 1433 | | |
1441 | | - | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
1442 | 1444 | | |
1443 | 1445 | | |
1444 | 1446 | | |
| |||
0 commit comments