Lines Matching refs:lock
107 let mut root_guard: SpinLockGuard<RamFSInode> = result.root_inode.0.lock(); in new()
130 let inode: SpinLockGuard<RamFSInode> = self.0.lock(); in read_at()
163 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in write_at()
184 let inode: SpinLockGuard<RamFSInode> = self.0.lock(); in poll()
197 return self.0.lock().fs.upgrade().unwrap(); in fs()
205 let inode = self.0.lock(); in metadata()
213 let mut inode = self.0.lock(); in set_metadata()
225 let mut inode = self.0.lock(); in resize()
242 let mut inode = self.0.lock(); in create_with_data()
278 result.0.lock().self_ref = Arc::downgrade(&result); in create_with_data()
290 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in link()
291 let mut other_locked: SpinLockGuard<RamFSInode> = other.0.lock(); in link()
318 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in unlink()
330 if to_delete.0.lock().metadata.file_type == FileType::Dir { in unlink()
334 to_delete.0.lock().metadata.nlinks -= 1; in unlink()
341 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in rmdir()
348 if to_delete.0.lock().metadata.file_type != FileType::Dir { in rmdir()
352 to_delete.0.lock().metadata.nlinks -= 1; in rmdir()
378 let inode = self.0.lock(); in find()
400 let inode: SpinLockGuard<RamFSInode> = self.0.lock(); in get_entry_name()
418 .filter(|k| inode.children.get(*k).unwrap().0.lock().metadata.inode_id == ino) in get_entry_name()
440 keys.append(&mut self.0.lock().children.keys().cloned().collect()); in list()