From 56c48bcccb1290a39f237a73a0f08d1cf6381f9c Mon Sep 17 00:00:00 2001 From: Jiang Liu Date: Fri, 14 Apr 2023 16:57:59 +0800 Subject: [PATCH] rafs: fix a regression caused by commit 2616fb2c0502e4 Fix a regression caused by commit 2616fb2c0502e4. Signed-off-by: Jiang Liu --- rafs/src/metadata/direct_v6.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rafs/src/metadata/direct_v6.rs b/rafs/src/metadata/direct_v6.rs index ef1d5d04a5e..9941049bdee 100644 --- a/rafs/src/metadata/direct_v6.rs +++ b/rafs/src/metadata/direct_v6.rs @@ -439,7 +439,7 @@ impl OndiskInodeWrapper { Ordering::Greater => (block_size - base) as usize, Ordering::Equal => { if self.size() % block_size == 0 { - block_size as usize + (block_size - base) as usize } else { (self.size() % block_size - base) as usize }