Skip to content

Commit

Permalink
Merge pull request #1213 from jiangliu/dir-entry-name
Browse files Browse the repository at this point in the history
rafs: fix a regression caused by commit 2616fb2
  • Loading branch information
jiangliu authored Apr 14, 2023
2 parents a57a97b + 56c48bc commit 80ede75
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 @@ -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
}
Expand Down

0 comments on commit 80ede75

Please sign in to comment.