erofs-utils: add missing block counting
PATCH v2 1/1 erofs-utils: add missing block counting
Add missing block counting when the data to be inlined is not inlined.
---
v2:
- move from erofs_write_tail_end() to erofs_prepare_tail_block()
--- lib/inode.c | 1 + 1 file changed, 1 insertion(+)
lib/inode.c +1 -0
@@ -670,6 +670,7 @@ static int erofs_prepare_tail_block(struct erofs_inode *inode) }else { inode->lazy_tailblock = true; } + inode->u.i_blocks +=1 ;return 0 ; }
Signature · 1 line
2.44.0
Quoted 7 lines · Noboru Asai
Add missing block counting when the data to be inlined is not inlined.
---
v2:
- move fromerofs_write_tail_end()toerofs_prepare_tail_block()Signed-off-by Noboru Asai <[email protected]>
Thanks,
Gao Xiang
Gao Xiang
Reviewed-byQuoted 9 lines · Gao Xiang
Quoted 6 lines · Noboru Asai
Add missing block counting when the data to be inlined is not inlined.
---
v2:
- move fromerofs_write_tail_end()toerofs_prepare_tail_block()
Quoted 6 lines
Quoted 1 line
Signed-off-by Noboru Asai <[email protected]>Reviewed-by Gao Xiang <[email protected]>Thanks,
Gao Xiang
I applied the following version since v2 caused CI failure:
https://github.com/erofs/erofsnightly/actions/runs/8812585654
From 89e76dda5fd4956709bbb88b76063ef165fa3882 Mon Sep 17 00:00:00 2001
From: Noboru Asai <[email protected]>
Date: Wed, 24 Apr 2024 14:59:23 +0900
Subject: [PATCH] erofs-utils: add missing block counting
Add missing block counting when the data to be inlined is not inlined.
--- lib/inode.c | 2 ++ 1 file changed, 2 insertions(+)
lib/inode.c +2 -0
@@ -664,6 +664,8 @@ static int erofs_prepare_tail_block(struct erofs_inode *inode) }else { inode->lazy_tailblock = true; } +if (is_inode_layout_compression (inode)) + inode->u.i_blocks +=1 ;return 0 ; }
Signature · 1 line
2.30.2
Hi Gao,
Oh, sorry.
I knew to access i_blkaddr on uncompressed file, but it didn't occur on the file system for testing, so I overlooked it.
I needed to be careful.
2024年4月24日(水) 19:38 Gao Xiang <[email protected]>:
Quoted 52 lines · Gao Xiang
Quoted 9 lines · Noboru Asai
Quoted 6 lines
Add missing block counting when the data to be inlined is not inlined.
---
v2:
- move fromerofs_write_tail_end()toerofs_prepare_tail_block()Quoted 6 lines
Quoted 1 line
Signed-off-by Noboru Asai <[email protected]>Reviewed-by Gao Xiang <[email protected]>Thanks,
Gao XiangI applied the following version since v2 caused CI failure:
https://github.com/erofs/erofsnightly/actions/runs/8812585654From
89e76dda5fd4956709bbb88b76063ef165fa3882Mon Sep 17 00:00:00 2001
From: Noboru Asai <[email protected]>
Date: Wed, 24 Apr 2024 14:59:23 +0900
Subject: [PATCH] erofs-utils: add missing block countingAdd missing block counting when the data to be inlined is not inlined.
Signed-off-by Noboru Asai <[email protected]>Reviewed-by Gao Xiang <[email protected]>Signed-off-by Gao Xiang <[email protected]>--- lib/inode.c | 2 ++ 1 file changed, 2 insertions(+)lib/inode.c +2
-1@@ -664,6 +664,8 @@ static int erofs_prepare_tail_block(struct erofs_inode *inode) }else { inode->lazy_tailblock = true; } +if (is_inode_layout_compression (inode)) + inode->u.i_blocks +=1 ;return 0 ; } --2.30.2
Quoted 6 lines · Noboru Asai
Hi Gao,
Oh, sorry.
I knew to accessi_blkaddron uncompressed file, but it didn't occur on the file system for testing, so I overlooked it.
I needed to be careful.
np, I've fixed it :)
Thanks,
Gao Xiang