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

Yue Hu zbestahu at gmail.com
Wed Jun 16 18:01:12 AEST 2021


From: Yue Hu <huyue2 at yulong.com>

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.

Signed-off-by: Yue Hu <huyue2 at yulong.com>
---
 lib/inode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/inode.c b/lib/inode.c
index ca8952e..b6108db 100644
--- a/lib/inode.c
+++ b/lib/inode.c
@@ -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;
 	}
-- 
1.9.1



More information about the Linux-erofs mailing list