aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYue Hu <huyue2@coolpad.com>2023-08-15 18:24:05 +0800
committerGao Xiang <hsiangkao@linux.alibaba.com>2023-08-16 13:58:42 +0800
commit60f71d6614ddaecc595fa14de3ac131226393a61 (patch)
treed905e763dd4075616ae28a9c374b4dd531c3018b
parent2dd318025111217a71713b962b7e92532d87ba1e (diff)
downloaderofs-utils-60f71d6614ddaecc595fa14de3ac131226393a61.tar.gz
AOSP: erofs-utils: add missing sbi argument to erofs_blknr in block list
Commit fc30780ebf90 ("erofs-utils: lib: avoid global sbi dependencies (take 1)") updated the macro erofs_blknr by adding sbi argument. Fixes: fc30780ebf90 ("erofs-utils: lib: avoid global sbi dependencies (take 1)") Signed-off-by: Yue Hu <huyue2@coolpad.com> Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> Link: https://lore.kernel.org/r/20230815102405.19486-1-zbestahu@gmail.com Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
-rw-r--r--lib/block_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/block_list.c b/lib/block_list.c
index b45b553..f47a746 100644
--- a/lib/block_list.c
+++ b/lib/block_list.c
@@ -108,7 +108,7 @@ void erofs_droid_blocklist_write_tail_end(struct erofs_inode *inode,
return;
/* XXX: another hack, which means it has been outputed before */
- if (erofs_blknr(inode->i_size)) {
+ if (erofs_blknr(inode->sbi, inode->i_size)) {
if (blkaddr == NULL_ADDR)
fprintf(block_list_fp, "\n");
else