diff options
author | Jingbo Xu <jefflexu@linux.alibaba.com> | 2023-09-13 20:02:57 +0800 |
---|---|---|
committer | Gao Xiang <hsiangkao@linux.alibaba.com> | 2023-09-14 17:45:11 +0800 |
commit | 8c70ef2504f88f682e58731b97767412512a535d (patch) | |
tree | b216daf1c94577d8a7ad6837c669d67a1948c75f | |
parent | 18ad066c56fc046a75d4263360688286117fbe38 (diff) | |
download | erofs-utils-8c70ef2504f88f682e58731b97767412512a535d.tar.gz |
erofs-utils: lib: make erofs_get_unhashed_chunk() global
... so that it could be called from outside blobchunk.c later.
Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230913120304.15741-3-jefflexu@linux.alibaba.com
-rw-r--r-- | include/erofs/blobchunk.h | 2 | ||||
-rw-r--r-- | lib/blobchunk.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/erofs/blobchunk.h b/include/erofs/blobchunk.h index 010aee1..fb85d8e 100644 --- a/include/erofs/blobchunk.h +++ b/include/erofs/blobchunk.h @@ -14,6 +14,8 @@ extern "C" #include "erofs/internal.h" +struct erofs_blobchunk *erofs_get_unhashed_chunk(unsigned int device_id, + erofs_blk_t blkaddr, erofs_off_t sourceoffset); int erofs_blob_write_chunk_indexes(struct erofs_inode *inode, erofs_off_t off); int erofs_blob_write_chunked_file(struct erofs_inode *inode, int fd); int tarerofs_write_chunkes(struct erofs_inode *inode, erofs_off_t data_offset); diff --git a/lib/blobchunk.c b/lib/blobchunk.c index fcc71b8..aca616e 100644 --- a/lib/blobchunk.c +++ b/lib/blobchunk.c @@ -38,7 +38,7 @@ struct erofs_blobchunk erofs_holechunk = { }; static LIST_HEAD(unhashed_blobchunks); -static struct erofs_blobchunk *erofs_get_unhashed_chunk(unsigned int device_id, +struct erofs_blobchunk *erofs_get_unhashed_chunk(unsigned int device_id, erofs_blk_t blkaddr, erofs_off_t sourceoffset) { struct erofs_blobchunk *chunk; |