Commit fa589ac
ceph: remove error return from ceph_process_folio_batch()
Following an earlier commit, ceph_process_folio_batch() no longer
returns errors because the writeback loop cannot handle them.
Since this function already indicates failure to lock any pages by
leaving `ceph_wbc.locked_pages == 0`, and the writeback loop has no way
to handle abandonment of a locked batch, change the return type of
ceph_process_folio_batch() to `void` and remove the pathological goto in
the writeback loop. The lack of a return code emphasizes that
ceph_process_folio_batch() is designed to be abort-free: that is, once
it commits a folio for writeback, it will not later abandon it or
propagate an error for that folio. Any future changes requiring "abort"
logic should follow this invariant by cleaning up its array and
resetting ceph_wbc.locked_pages appropriately.
Signed-off-by: Sam Edwards <CFSworks@gmail.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>1 parent cac190c commit fa589ac
1 file changed
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
1287 | | - | |
1288 | | - | |
1289 | | - | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
1290 | 1290 | | |
1291 | 1291 | | |
1292 | 1292 | | |
1293 | 1293 | | |
1294 | 1294 | | |
1295 | 1295 | | |
1296 | | - | |
| 1296 | + | |
1297 | 1297 | | |
1298 | 1298 | | |
1299 | 1299 | | |
| |||
1323 | 1323 | | |
1324 | 1324 | | |
1325 | 1325 | | |
1326 | | - | |
1327 | 1326 | | |
1328 | 1327 | | |
1329 | 1328 | | |
1330 | 1329 | | |
1331 | | - | |
1332 | 1330 | | |
1333 | 1331 | | |
1334 | 1332 | | |
| |||
1370 | 1368 | | |
1371 | 1369 | | |
1372 | 1370 | | |
1373 | | - | |
1374 | 1371 | | |
1375 | 1372 | | |
1376 | 1373 | | |
| |||
1381 | 1378 | | |
1382 | 1379 | | |
1383 | 1380 | | |
1384 | | - | |
1385 | | - | |
1386 | 1381 | | |
1387 | 1382 | | |
1388 | 1383 | | |
| |||
1686 | 1681 | | |
1687 | 1682 | | |
1688 | 1683 | | |
1689 | | - | |
| 1684 | + | |
1690 | 1685 | | |
1691 | | - | |
1692 | | - | |
1693 | 1686 | | |
1694 | 1687 | | |
1695 | 1688 | | |
| |||
0 commit comments