[PATCH] AOSP: erofs-utils: add missing sbi argument to erofs_blknr in block list

Yue Hu zbestahu at gmail.com
Tue Aug 15 20:24:05 AEST 2023


From: Yue Hu <huyue2 at coolpad.com>

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 at coolpad.com>
---
 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



More information about the Linux-erofs mailing list