linux/fs/squashfs
Phillip Lougher 9508c6b90b Squashfs: Refactor decompressor interface and code
The decompressor interface and code was written from
the point of view of single-threaded operation.  In doing
so it mixed a lot of single-threaded implementation specific
aspects into the decompressor code and elsewhere which makes it
difficult to seamlessly support multiple different decompressor
implementations.

This patch does the following:

1.  It removes compressor_options parsing from the decompressor
    init() function.  This allows the decompressor init() function
    to be dynamically called to instantiate multiple decompressors,
    without the compressor options needing to be read and parsed each
    time.

2.  It moves threading and all sleeping operations out of the
    decompressors.  In doing so, it makes the decompressors
    non-blocking wrappers which only deal with interfacing with
    the decompressor implementation.

3. It splits decompressor.[ch] into decompressor generic functions
   in decompressor.[ch], and moves the single threaded
   decompressor implementation into decompressor_single.c.

The result of this patch is Squashfs should now be able to
support multiple decompressors by adding new decompressor_xxx.c
files with specialised implementations of the functions in
decompressor_single.c

Signed-off-by: Phillip Lougher <phillip@squashfs.org.uk>
Reviewed-by: Minchan Kim <minchan@kernel.org>
2013-11-20 03:35:18 +00:00
..
block.c Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
cache.c Squashfs: optimise squashfs_cache_get entry search 2011-12-30 01:24:13 +00:00
decompressor_single.c Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
decompressor.c Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
decompressor.h Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
dir.c Squashfs: add corruption check for type in squashfs_readdir() 2013-09-06 04:57:54 +01:00
export.c Squashfs: Fix sanity check patches on big-endian systems 2011-05-29 10:03:09 +01:00
file.c squashfs: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:25 +08:00
fragment.c Squashfs: Fix sanity check patches on big-endian systems 2011-05-29 10:03:09 +01:00
id.c Squashfs: Fix sanity check patches on big-endian systems 2011-05-29 10:03:09 +01:00
inode.c userns: Convert squashfs to use kuid/kgid where appropriate 2012-09-21 03:13:35 -07:00
Kconfig Merge git://git.kernel.org/pub/scm/linux/kernel/git/pkl/squashfs-next 2011-11-04 16:48:37 -07:00
lzo_wrapper.c Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
Makefile Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
namei.c Squashfs: fix corruption checks in squashfs_lookup() 2013-09-06 04:57:53 +01:00
squashfs_fs_i.h Squashfs: update email address 2011-05-26 10:49:11 +01:00
squashfs_fs_sb.h Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
squashfs_fs.h Squashfs: add corruption check for type in squashfs_readdir() 2013-09-06 04:57:54 +01:00
squashfs.h Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
super.c Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
symlink.c squashfs: remove the second argument of k[un]map_atomic() 2012-03-20 21:48:25 +08:00
xattr_id.c Squashfs: update email address 2011-05-26 10:49:11 +01:00
xattr.c Squashfs: update email address 2011-05-26 10:49:11 +01:00
xattr.h Squashfs: update email address 2011-05-26 10:49:11 +01:00
xz_wrapper.c Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00
zlib_wrapper.c Squashfs: Refactor decompressor interface and code 2013-11-20 03:35:18 +00:00