Skip to contentSkip to conversation

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

PATCH In review Yue Hu 2 participants 2 messages Aug 15, 2023 Library code

lore
Share & tools
lore

Yue Hu

author
#0 lore raw

PATCH 1/1 AOSP: erofs-utils: add missing sbi argument to erofs_blknr in block list

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)")
---
 lib/block_list.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/block_list.c +1 -1
index 896fb01..f78381d 100644
@@ -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
Signature · 1 line
2.17.1