Squashfs: implement .readpages()
authorAdrien Schildknecht <adriens@google.com>
Mon, 7 Nov 2016 20:41:42 +0000 (12:41 -0800)
committerAmit Pundir <amit.pundir@linaro.org>
Mon, 10 Apr 2017 07:42:16 +0000 (13:12 +0530)
commit9c6d9abc8fa9d5207da81d4f7bb14b9c315e11e7
treea149aab11153040316ebb01874bffe3865eb12ff
parent832771453f05c0eab9e3659d2085aff808f88e6a
Squashfs: implement .readpages()

Squashfs does not implement .readpages(), so the kernel just repeatedly
calls .readpage().

The readpages function tries to pack as much pages as possible in the
same page actor so that only 1 read request is issued.

Now that the read requests are asynchronous, the kernel can truly
prefetch pages using its readahead algorithm.

Signed-off-by: Adrien Schildknecht <adriens@google.com>
Change-Id: Ice70e029dc24526f61e4e5a1a902588be2212498
fs/squashfs/file.c
fs/squashfs/file_direct.c
fs/squashfs/squashfs.h