1. 20 11月, 2013 3 次提交
    • P
      Squashfs: Restructure squashfs_readpage() · 5f55dbc0
      Phillip Lougher 提交于
      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: NPhillip Lougher <phillip@squashfs.org.uk>
      Reviewed-by: NMinchan Kim <minchan@kernel.org>
      5f55dbc0
    • P
      Squashfs: Generalise paging handling in the decompressors · 846b730e
      Phillip Lougher 提交于
      Further generalise the decompressors by adding a page handler
      abstraction.  This adds helpers to allow the decompressors
      to access and process the output buffers in an implementation
      independant manner.
      
      This allows different types of output buffer to be passed
      to the decompressors, with the implementation specific
      aspects handled at decompression time, but without the
      knowledge being held in the decompressor wrapper code.
      
      This will allow the decompressors to handle Squashfs
      cache buffers, and page cache pages.
      
      This patch adds the abstraction and an implementation for
      the caches.
      Signed-off-by: NPhillip Lougher <phillip@squashfs.org.uk>
      Reviewed-by: NMinchan Kim <minchan@kernel.org>
      846b730e
    • P
      Squashfs: Refactor decompressor interface and code · 9508c6b9
      Phillip Lougher 提交于
      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: NPhillip Lougher <phillip@squashfs.org.uk>
      Reviewed-by: NMinchan Kim <minchan@kernel.org>
      9508c6b9
  2. 22 7月, 2011 1 次提交
  3. 26 5月, 2011 5 次提交
  4. 01 3月, 2011 1 次提交
    • P
      Squashfs: extend decompressor framework to handle compression options · b7fc0ff0
      Phillip Lougher 提交于
      Extend decompressor framework to handle compression options stored in
      the filesystem.  These options can be used by the relevant decompressor
      at initialisation time to over-ride defaults.
      
      The presence of compression options in the filesystem is indicated by
      the COMP_OPT filesystem flag.  If present the data is read from the
      filesystem and passed to the decompressor init function.  The decompressor
      init function signature has been extended to take this data.
      
      Also update the init function signature in the glib, lzo and xz
      decompressor wrappers.
      Signed-off-by: NPhillip Lougher <phillip@lougher.demon.co.uk>
      b7fc0ff0
  5. 14 1月, 2011 2 次提交
  6. 06 8月, 2010 1 次提交
  7. 05 8月, 2010 1 次提交
  8. 23 5月, 2010 1 次提交
  9. 18 5月, 2010 3 次提交
  10. 21 1月, 2010 3 次提交
  11. 05 3月, 2009 1 次提交
  12. 05 1月, 2009 1 次提交