summaryrefslogtreecommitdiff
path: root/include/crypto/algapi.h
diff options
context:
space:
mode:
authorAdrien Schildknecht <adriens@google.com>2016-09-29 15:25:30 -0700
committerDaniel Rosenberg <drosen@google.com>2017-02-09 04:04:18 +0000
commitd9aa8ddc51cbd7d3bc68d664f9b71548a04447e9 (patch)
tree734318e6ed83db73ec5a033fc2adbfb1b86ff38a /include/crypto/algapi.h
parent5e9c466d6ec02a6d43ab7ff595c90b10bd0eada1 (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: I1850150fbf4b45c9dd138d88409fea1ab44054c0
Diffstat (limited to 'include/crypto/algapi.h')
0 files changed, 0 insertions, 0 deletions