Squashfs: Restructure squashfs_readpage()
authorPhillip Lougher <phillip@squashfs.org.uk>
Thu, 31 Oct 2013 19:24:27 +0000 (19:24 +0000)
committerMohamad Ayyash <mkayyash@google.com>
Wed, 4 Mar 2015 19:22:27 +0000 (11:22 -0800)
commit4ff4dc4d1508e64cb642dc1d1380085af47d1d6e
treec8548100afff5ff444917ea7c08a7a3ff8b7b78f
parentdad13d68547bf13dde9a4ef7e24659e10250b7b1
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