diff --git a/easy-fs/src/efs.rs b/easy-fs/src/efs.rs index 9e4445df..6b3db0fb 100644 --- a/easy-fs/src/efs.rs +++ b/easy-fs/src/efs.rs @@ -119,12 +119,6 @@ impl EasyFileSystem { ) } - /* - fn get_super_block(&self) -> Dirty { - Dirty::new(0, 0, self.block_device.clone()) - } - */ - pub fn get_disk_inode_pos(&self, inode_id: u32) -> (u32, usize) { let inode_size = core::mem::size_of::(); let inodes_per_block = (BLOCK_SZ / inode_size) as u32; @@ -136,16 +130,6 @@ impl EasyFileSystem { self.data_area_start_block + data_block_id } - /* - fn get_block(&self, block_id: u32) -> Dirty { - Dirty::new( - block_id as usize, - 0, - self.block_device.clone(), - ) - } - */ - pub fn alloc_inode(&mut self) -> u32 { self.inode_bitmap.alloc(&self.block_device).unwrap() as u32 } diff --git a/easy-fs/src/vfs.rs b/easy-fs/src/vfs.rs index 3ed069f2..58f2be78 100644 --- a/easy-fs/src/vfs.rs +++ b/easy-fs/src/vfs.rs @@ -48,12 +48,6 @@ impl Inode { ).lock().modify(self.block_offset, f) } - /* - fn get_disk_inode(&self, fs: &mut MutexGuard) -> Dirty { - fs.get_disk_inode(self.inode_id) - } - */ - fn find_inode_id( &self, name: &str,