mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
When dealing with uncompressed data, there is no need to read a whole block (default 128K) to get the desired page: the pages are independent from each others. This patch change the readpages logic so that reading uncompressed data only read the number of pages advised by the readahead algorithm. Moreover, if the page actor contains holes (i.e. pages that are already up-to-date), squashfs skips the buffer_head associated to those pages. This patch greatly improve the performance of random reads for uncompressed files because squashfs only read what is needed. It also reduces the number of unnecessary reads. Change-Id: I90a77343bb994a1de7482eb43eaf6d2021502c22 Signed-off-by: Adrien Schildknecht <adriens@google.com>