diff options
author | Phillip Lougher <phillip@squashfs.org.uk> | 2013-10-31 20:24:27 +0100 |
---|---|---|
committer | Phillip Lougher <phillip@squashfs.org.uk> | 2013-11-20 04:59:07 +0100 |
commit | 5f55dbc0c5c466a9cdfa4da7ac1bfe351c7fc52a (patch) | |
tree | dccfe66c090bfd05c75f5d6a1cc31bf138bd76b1 /fs/squashfs/squashfs.h | |
parent | Squashfs: Generalise paging handling in the decompressors (diff) | |
download | linux-5f55dbc0c5c466a9cdfa4da7ac1bfe351c7fc52a.tar.xz linux-5f55dbc0c5c466a9cdfa4da7ac1bfe351c7fc52a.zip |
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>
Diffstat (limited to 'fs/squashfs/squashfs.h')
-rw-r--r-- | fs/squashfs/squashfs.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/squashfs/squashfs.h b/fs/squashfs/squashfs.h index 6a97e63ca173..9e1bb79f7e6f 100644 --- a/fs/squashfs/squashfs.h +++ b/fs/squashfs/squashfs.h @@ -66,6 +66,13 @@ extern int squashfs_frag_lookup(struct super_block *, unsigned int, u64 *); extern __le64 *squashfs_read_fragment_index_table(struct super_block *, u64, u64, unsigned int); +/* file.c */ +void squashfs_copy_cache(struct page *, struct squashfs_cache_entry *, int, + int); + +/* file_xxx.c */ +extern int squashfs_readpage_block(struct page *, u64, int); + /* id.c */ extern int squashfs_get_id(struct super_block *, unsigned int, unsigned int *); extern __le64 *squashfs_read_id_index_table(struct super_block *, u64, u64, |