]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Squashfs: Update squashfs_readahead() to not use page->index
authorPhillip Lougher <phillip@squashfs.org.uk>
Sun, 18 Aug 2024 23:58:45 +0000 (00:58 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 19 Aug 2024 12:08:20 +0000 (14:08 +0200)
commit6f09ffb1f4fadf156d5d1032217b9d1fa4e07dbe
tree772661ea9caa8063ce7a178ff63fc2af5a8de401
parent2258e22f05aff5865c93cbd4e9acba55b295d832
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 <phillip@squashfs.org.uk>
Link: https://lore.kernel.org/r/20240818235847.170468-3-phillip@squashfs.org.uk
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/squashfs/file.c