Skip to content

Commit

Permalink
rafs: fix a regression caused by commit 2616fb2
Browse files Browse the repository at this point in the history
Fix a regression caused by commit 2616fb2.

Signed-off-by: Jiang Liu <gerry@linux.alibaba.com>
  • Loading branch information
jiangliu committed Apr 14, 2023
1 parent 84c64bd commit 33234a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rafs/src/metadata/direct_v6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ impl OndiskInodeWrapper {
let len = if div_round_up(self.size(), EROFS_BLOCK_SIZE) as usize == block_index + 1
{
if self.size() % EROFS_BLOCK_SIZE == 0 {
EROFS_BLOCK_SIZE as usize
(EROFS_BLOCK_SIZE - s) as usize
} else {
(self.size() % EROFS_BLOCK_SIZE - s) as usize
}
Expand Down

0 comments on commit 33234a6

Please sign in to comment.