fn writeback(&mut self) -> Result<()> {
        while self.dirty.len() + 1 >= self.dirty.cap() {
            let (seq, page) = self.dirty.pop_lru().unwrap();
            debug!("{:?}: writeback #{}", self.name, seq);
            let id = page.save(&self.backend)?;
            self.map[seq as usize] = Some(id);
        }
        Ok(())
    }
/// Pushes pages from the dirty cache to disk if the latter becomes too full.
Pushes pages from the dirty cache to disk if the latter becomes too full.
Pushes pages from the dirty cache to disk if the latter becomes too full .
fn writeback(&mut self) -> Result<()> {
        while self.dirty.len() + 1 >= self.dirty.cap() {
            let (seq, page) = self.dirty.pop_lru().unwrap();
            debug!("{:?}: writeback #{}", self.name, seq);
            let id = page.save(&self.backend)?;
            self.map[seq as usize] = Some(id);
        }
        Ok(())
    }
fn writeback ( & mut self ) -> Result < ( ) > { while self . dirty . len ( ) + 1 >= self . dirty . cap ( ) { let ( seq , page ) = self . dirty . pop_lru ( ) . unwrap ( ) ; debug ! ( " " self name seq ) ; let id = page . save ( & self . backend ) ? ; self . map [ seq as usize ] = Some ( id ) ; } Ok ( ( ) ) }
Pushes pages from the dirty cache to disk if the latter becomes too full.
Pushes pages from the dirty cache to disk if the latter becomes too full .
&mut self
&mut self