]> www.infradead.org Git - users/dwmw2/linux.git/commit
Squashfs: Rewrite and update squashfs_readahead_fragment() to not use page->index
authorPhillip Lougher <phillip@squashfs.org.uk>
Sun, 18 Aug 2024 23:58:47 +0000 (00:58 +0100)
committerChristian Brauner <brauner@kernel.org>
Mon, 19 Aug 2024 12:08:21 +0000 (14:08 +0200)
commitfd54fa6efe0dd3894d6fd703f8856675b4bf8315
tree87209d163dd161e005fb7d93f4f3f3ac7ff88ffb
parent7f73fcde4d93072d4003fee0949359757e8d0e41
Squashfs: Rewrite and update squashfs_readahead_fragment() to not use page->index

The previous implementation lacked error checking (e.g. the bytes
returned by squashfs_fill_page() is not checked), and the use of
page->index could not be removed without substantially rewriting
the routine to use the page actor abstraction used elsewhere.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Link: https://lore.kernel.org/r/20240818235847.170468-5-phillip@squashfs.org.uk
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/squashfs/file.c