diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-24 15:19:18 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-24 15:19:18 +0200 |
commit | 9bc8200387408f02e7ff4065664b7702b29e2545 (patch) | |
tree | ec2704b22fb7f40433090a4b544f6b3e901d6b7d /lib/sqfs/blk_proc/process_block.c | |
parent | 8d9f24a65ef27a52615b3225776632de08462eba (diff) |
Do the fragment checksumming in the workter thread
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/blk_proc/process_block.c')
-rw-r--r-- | lib/sqfs/blk_proc/process_block.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqfs/blk_proc/process_block.c b/lib/sqfs/blk_proc/process_block.c index b4ed904..f154a14 100644 --- a/lib/sqfs/blk_proc/process_block.c +++ b/lib/sqfs/blk_proc/process_block.c @@ -21,6 +21,9 @@ int sqfs_block_process(sqfs_block_t *block, sqfs_compressor_t *cmp, block->checksum = crc32(0, block->data, block->size); + if (block->flags & SQFS_BLK_IS_FRAGMENT) + return 0; + if (!(block->flags & SQFS_BLK_DONT_COMPRESS)) { ret = cmp->do_block(cmp, block->data, block->size, scratch, scratch_size); |