Skip to content
Commit 8fc78b6f authored by Hsin-Yi Wang's avatar Hsin-Yi Wang Committed by akpm
Browse files

squashfs: implement readahead

Implement readahead callback for squashfs.  It will read datablocks which
cover pages in readahead request.  For a few cases it will not mark page
as uptodate, including:

- file end is 0.
- zero filled blocks.
- current batch of pages isn't in the same datablock.
- decompressor error.

Otherwise pages will be marked as uptodate.  The unhandled pages will be
updated by readpage later.

Link: https://lkml.kernel.org/r/20220617083810.337573-4-hsinyi@chromium.org


Signed-off-by: default avatarHsin-Yi Wang <hsinyi@chromium.org>
Suggested-by: default avatarMatthew Wilcox <willy@infradead.org>
Reported-by: default avatarMatthew Wilcox <willy@infradead.org>
Reported-by: default avatarPhillip Lougher <phillip@squashfs.org.uk>
Reported-by: default avatarXiongwei Song <Xiongwei.Song@windriver.com>
Reported-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Hou Tao <houtao1@huawei.com>
Cc: kernel test robot <lkp@intel.com>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Miao Xie <miaoxie@huawei.com>
Cc: Zhang Yi <yi.zhang@huawei.com>
Cc: Zheng Liang <zhengliang6@huawei.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent db98b430
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment