Skip to content

Commit b902b22

Browse files
ppdoggwyfcyx
authored andcommitted
Update efs.rs
-------- Cherry-picked from #160.
1 parent 0b9f204 commit b902b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

easy-fs/src/efs.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ impl EasyFileSystem {
3232
let data_bitmap_blocks = (data_total_blocks + 4096) / 4097;
3333
let data_area_blocks = data_total_blocks - data_bitmap_blocks;
3434
let data_bitmap = Bitmap::new(
35-
(1 + inode_bitmap_blocks + inode_area_blocks) as usize,
35+
(1 + inode_total_blocks) as usize,
3636
data_bitmap_blocks as usize,
3737
);
3838
let mut efs = Self {

0 commit comments

Comments
 (0)