Commit 6f09ffb
Squashfs: Update squashfs_readahead() to not use page->index
This commit removes references to page->index in the pages returned
from __readahead_batch(), and instead uses the 'start' variable.
This does reveal a bug in the previous code in that 'start' was
not updated every time around the loop. This is fixed in this
commit.
Signed-off-by: Phillip Lougher <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian Brauner <[email protected]>1 parent 2258e22 commit 6f09ffb
1 file changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
554 | | - | |
555 | 554 | | |
556 | 555 | | |
557 | 556 | | |
| |||
570 | 569 | | |
571 | 570 | | |
572 | 571 | | |
573 | | - | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
578 | | - | |
579 | | - | |
| 572 | + | |
| 573 | + | |
580 | 574 | | |
581 | 575 | | |
582 | 576 | | |
583 | 577 | | |
584 | 578 | | |
585 | 579 | | |
586 | 580 | | |
587 | | - | |
| 581 | + | |
588 | 582 | | |
589 | 583 | | |
590 | 584 | | |
| |||
602 | 596 | | |
603 | 597 | | |
604 | 598 | | |
605 | | - | |
| 599 | + | |
606 | 600 | | |
607 | 601 | | |
608 | 602 | | |
| |||
616 | 610 | | |
617 | 611 | | |
618 | 612 | | |
| 613 | + | |
| 614 | + | |
619 | 615 | | |
620 | 616 | | |
621 | 617 | | |
| |||
0 commit comments