Commit d9dc477
iomap: advance the iter directly on buffered read
iomap buffered read advances the iter via iter.processed. To
continue separating iter advance from return status, update
iomap_readpage_iter() to advance the iter instead of returning the
number of bytes processed. In turn, drop the offset parameter and
sample the updated iter->pos at the start of the function. Update
the callers to loop based on remaining length in the current
iteration instead of number of bytes processed.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Link: https://lore.kernel.org/r/20250224144757.237706-2-bfoster@redhat.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Christian Brauner <brauner@kernel.org>1 parent 30f5300 commit d9dc477
1 file changed
+20
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | | - | |
| 365 | + | |
| 366 | + | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
370 | | - | |
| 369 | + | |
| 370 | + | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
374 | 373 | | |
375 | 374 | | |
376 | 375 | | |
| |||
434 | 433 | | |
435 | 434 | | |
436 | 435 | | |
437 | | - | |
| 436 | + | |
| 437 | + | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
452 | 448 | | |
453 | 449 | | |
454 | 450 | | |
455 | | - | |
| 451 | + | |
456 | 452 | | |
457 | 453 | | |
458 | 454 | | |
| |||
489 | 485 | | |
490 | 486 | | |
491 | 487 | | |
492 | | - | |
| 488 | + | |
493 | 489 | | |
494 | 490 | | |
495 | | - | |
496 | | - | |
| 491 | + | |
497 | 492 | | |
498 | | - | |
| 493 | + | |
499 | 494 | | |
500 | | - | |
| 495 | + | |
501 | 496 | | |
502 | 497 | | |
503 | 498 | | |
| |||
506 | 501 | | |
507 | 502 | | |
508 | 503 | | |
509 | | - | |
510 | | - | |
| 504 | + | |
| 505 | + | |
511 | 506 | | |
512 | 507 | | |
513 | 508 | | |
514 | | - | |
| 509 | + | |
515 | 510 | | |
516 | 511 | | |
517 | 512 | | |
| |||
0 commit comments