erofs-utils: lib: make erofs_get_unhashed_chunk() global
authorJingbo Xu <jefflexu@linux.alibaba.com>
Wed, 13 Sep 2023 12:02:57 +0000 (20:02 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Thu, 14 Sep 2023 09:45:11 +0000 (17:45 +0800)
... 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
include/erofs/blobchunk.h
lib/blobchunk.c

index 010aee1ef9b86417ed1cee5a7b08891af8b9429d..fb85d8e5f0ac6ba462dff82bf18f8ddb13ce2453 100644 (file)
@@ -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);
index fcc71b80c2cbaf67f76692a75205527812478d08..aca616e08ac8d5bb9a86eefec328ce09739ccfa6 100644 (file)
@@ -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;