diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-19 15:32:47 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-02-20 17:04:22 +0100 |
commit | 3215679c2c87f3f40809f5eb75b5c679bcb4879d (patch) | |
tree | ed0e725fc884c721eeae847e3f54bfb0cb86072e /lib/sqfs/block_processor/internal.h | |
parent | 754e4f1bdeb2f89a04058c9f830a903a2a70c627 (diff) |
Restructure thread pool block processor
Implement the io-queue based design as outline in doc/parallelism.txt
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor/internal.h')
-rw-r--r-- | lib/sqfs/block_processor/internal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqfs/block_processor/internal.h b/lib/sqfs/block_processor/internal.h index 3c6570e..fb9c4a0 100644 --- a/lib/sqfs/block_processor/internal.h +++ b/lib/sqfs/block_processor/internal.h @@ -27,7 +27,8 @@ typedef struct sqfs_block_t { struct sqfs_block_t *next; sqfs_inode_generic_t *inode; - sqfs_u32 sequence_number; + sqfs_u32 proc_seq_num; + sqfs_u32 io_seq_num; sqfs_u32 flags; sqfs_u32 size; sqfs_u32 checksum; @@ -51,6 +52,7 @@ struct sqfs_block_processor_t { sqfs_inode_generic_t *inode; sqfs_block_t *blk_current; sqfs_u32 blk_flags; + sqfs_u32 blk_index; size_t max_block_size; }; |