All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] erofs-utils: add missing block counting
@ 2024-04-24  5:59 Noboru Asai
  2024-04-24  6:15 ` Gao Xiang
  0 siblings, 1 reply; 5+ messages in thread
From: Noboru Asai @ 2024-04-24  5:59 UTC (permalink / raw)
  To: hsiangkao; +Cc: linux-erofs

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()

Signed-off-by: Noboru Asai <asai@sijam.com>
---
 lib/inode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/inode.c b/lib/inode.c
index cf22bbe..9aba69d 100644
--- a/lib/inode.c
+++ b/lib/inode.c
@@ -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;
 }
 
-- 
2.44.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-04-25  7:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-24  5:59 [PATCH v2] erofs-utils: add missing block counting Noboru Asai
2024-04-24  6:15 ` Gao Xiang
2024-04-24 10:37   ` Gao Xiang
2024-04-25  2:48     ` Noboru Asai
2024-04-25  7:36       ` Gao Xiang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.