File tree Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Expand file tree Collapse file tree 2 files changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -119,12 +119,6 @@ impl EasyFileSystem {
119119 )
120120 }
121121
122- /*
123- fn get_super_block(&self) -> Dirty<SuperBlock> {
124- Dirty::new(0, 0, self.block_device.clone())
125- }
126- */
127-
128122 pub fn get_disk_inode_pos ( & self , inode_id : u32 ) -> ( u32 , usize ) {
129123 let inode_size = core:: mem:: size_of :: < DiskInode > ( ) ;
130124 let inodes_per_block = ( BLOCK_SZ / inode_size) as u32 ;
@@ -136,16 +130,6 @@ impl EasyFileSystem {
136130 self . data_area_start_block + data_block_id
137131 }
138132
139- /*
140- fn get_block(&self, block_id: u32) -> Dirty<DataBlock> {
141- Dirty::new(
142- block_id as usize,
143- 0,
144- self.block_device.clone(),
145- )
146- }
147- */
148-
149133 pub fn alloc_inode ( & mut self ) -> u32 {
150134 self . inode_bitmap . alloc ( & self . block_device ) . unwrap ( ) as u32
151135 }
Original file line number Diff line number Diff line change @@ -48,12 +48,6 @@ impl Inode {
4848 ) . lock ( ) . modify ( self . block_offset , f)
4949 }
5050
51- /*
52- fn get_disk_inode(&self, fs: &mut MutexGuard<EasyFileSystem>) -> Dirty<DiskInode> {
53- fs.get_disk_inode(self.inode_id)
54- }
55- */
56-
5751 fn find_inode_id (
5852 & self ,
5953 name : & str ,
You can’t perform that action at this time.
0 commit comments