Squashfs: Restructure squashfs_readpage()
authorPhillip Lougher <phillip@squashfs.org.uk>
Thu, 31 Oct 2013 19:24:27 +0000 (19:24 +0000)
committerPhillip Lougher <phillip@squashfs.org.uk>
Wed, 20 Nov 2013 03:59:07 +0000 (03:59 +0000)
commit5f55dbc0c5c466a9cdfa4da7ac1bfe351c7fc52a
treedccfe66c090bfd05c75f5d6a1cc31bf138bd76b1
parent846b730e99518a1c9945afcb2afbe4d08a02ed80
Squashfs: Restructure squashfs_readpage()

Restructure squashfs_readpage() splitting it into separate
functions for datablocks, fragments and sparse blocks.

Move the memcpying (from squashfs cache entry) implementation of
squashfs_readpage_block into file_cache.c

This allows different implementations to be supported.

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Reviewed-by: Minchan Kim <minchan@kernel.org>
fs/squashfs/Makefile
fs/squashfs/file.c
fs/squashfs/file_cache.c [new file with mode: 0644]
fs/squashfs/squashfs.h