From: Yue Hu <[email protected]>

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 <[email protected]>
---
 lib/block_list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/block_list.c b/lib/block_list.c
index 896fb01..f78381d 100644
--- a/lib/block_list.c
+++ b/lib/block_list.c
@@ -95,7 +95,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
-- 
2.17.1

Reply via email to