Lines Matching refs:lock
105 let mut root_guard: SpinLockGuard<RamFSInode> = result.root_inode.0.lock(); in new()
128 let inode: SpinLockGuard<RamFSInode> = self.0.lock(); in read_at()
161 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in write_at()
182 let inode: SpinLockGuard<RamFSInode> = self.0.lock(); in poll()
193 return self.0.lock().fs.upgrade().unwrap(); in fs()
201 let inode = self.0.lock(); in metadata()
209 let mut inode = self.0.lock(); in set_metadata()
221 let mut inode = self.0.lock(); in resize()
238 let mut inode = self.0.lock(); in create_with_data()
274 result.0.lock().self_ref = Arc::downgrade(&result); in create_with_data()
286 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in link()
287 let mut other_locked: SpinLockGuard<RamFSInode> = other.0.lock(); in link()
314 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in unlink()
326 if to_delete.0.lock().metadata.file_type == FileType::Dir { in unlink()
330 to_delete.0.lock().metadata.nlinks -= 1; in unlink()
337 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in rmdir()
344 if to_delete.0.lock().metadata.file_type != FileType::Dir { in rmdir()
348 to_delete.0.lock().metadata.nlinks -= 1; in rmdir()
374 let inode = self.0.lock(); in find()
396 let inode: SpinLockGuard<RamFSInode> = self.0.lock(); in get_entry_name()
414 .filter(|k| inode.children.get(*k).unwrap().0.lock().metadata.inode_id == ino) in get_entry_name()
436 keys.append(&mut self.0.lock().children.keys().cloned().collect()); in list()