Skip to contentSkip to conversation

erofs-utils: correct the only tail-end data comment in __allocate_inode_bh_data()

PATCH In review Yue Hu 2 participants 2 messages Jun 16, 2021 Library code

lore
Share & tools
lore

Yue Hu

author
#0 lore raw

PATCH 1/1 erofs-utils: correct the only tail-end data comment in __allocate_inode_bh_data()

From: Yue Hu <[email protected]>

nblocks = 0 means only tail-end data which may be inlined or not(ENOSPC). Acturally, we also observed this non-inline tail-end data case.

---
 lib/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/inode.c +1 -1
index ca8952e..b6108db 100644
@@ -119,7 +119,7 @@ static int __allocate_inode_bh_data(struct erofs_inode *inode,
 	int ret;
 
 	if (!nblocks) {
-		/* it has only tail-end inlined data */
+		/* it has only tail-end data */
 		inode->u.i_blkaddr = NULL_ADDR;
 		return 0;
 	}
Signature · 1 line
1.9.1