aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAdrien Schildknecht <adriens@google.com>2016-09-29 15:25:30 -0700
committerMister Oyster <oysterized@gmail.com>2017-04-11 11:00:21 +0200
commitded0debe27b1cb8c7e6708d70bfa49c3e14dde70 (patch)
tree73acb57c03f3aa98e82c8e3bcebe771e53b09152 /include/linux
parent72a5ae8e69a24047109b2522c7f344ddaa359211 (diff)
Squashfs: optimize reading uncompressed data
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. Signed-off-by: Adrien Schildknecht <adriens@google.com> Change-Id: I9109e431ac180a4e0c65381a3e754a425672d3c0
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions