Skip to content

Commit 493e373

Browse files
ppdoggwyfcyx
authored andcommitted
Update efs.rs
-------- Cherry-picked from #160.
1 parent 1f2b9a2 commit 493e373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easy-fs/src/efs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl EasyFileSystem {
3636
let data_bitmap_blocks = (data_total_blocks + 4096) / 4097;
3737
let data_area_blocks = data_total_blocks - data_bitmap_blocks;
3838
let data_bitmap = Bitmap::new(
39-
(1 + inode_bitmap_blocks + inode_area_blocks) as usize,
39+
(1 + inode_total_blocks) as usize,
4040
data_bitmap_blocks as usize,
4141
);
4242
let mut efs = Self {

0 commit comments

Comments
 (0)