Lines Matching refs:lock

146         let mut root_guard: SpinLockGuard<RamFSInode> = result.root_inode.0.lock();  in new()
174 let mut inode = self.0.lock(); in truncate()
211 let inode: SpinLockGuard<RamFSInode> = self.0.lock(); in read_at()
244 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in write_at()
264 return self.0.lock().fs.upgrade().unwrap(); in fs()
272 let inode = self.0.lock(); in metadata()
280 let mut inode = self.0.lock(); in set_metadata()
292 let mut inode = self.0.lock(); in resize()
310 let mut inode = self.0.lock(); in create_with_data()
348 result.0.lock().self_ref = Arc::downgrade(&result); in create_with_data()
361 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in link()
362 let mut other_locked: SpinLockGuard<RamFSInode> = other.0.lock(); in link()
389 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in unlink()
402 if to_delete.0.lock().metadata.file_type == FileType::Dir { in unlink()
406 to_delete.0.lock().metadata.nlinks -= 1; in unlink()
414 let mut inode: SpinLockGuard<RamFSInode> = self.0.lock(); in rmdir()
421 if to_delete.0.lock().metadata.file_type != FileType::Dir { in rmdir()
425 to_delete.0.lock().metadata.nlinks -= 1; in rmdir()
444 inode_to_move.0.lock().name = new_name.clone(); in move_to()
448 let mut self_inode = self.0.lock(); in move_to()
458 inode_to_move.0.lock().parent = Arc::downgrade( in move_to()
479 let inode = self.0.lock(); in find()
506 let inode: SpinLockGuard<RamFSInode> = self.0.lock(); in get_entry_name()
525 if v.0.lock().metadata.inode_id.into() == ino { in get_entry_name()
554 .lock() in list()
570 let mut inode = self.0.lock(); in mknod()
609 nod.0.lock().self_ref = Arc::downgrade(&nod); in mknod()
612 nod.0.lock().metadata.file_type = FileType::Pipe; in mknod()
616 nod.0.lock().special_node = Some(SpecialNodeData::Pipe(pipe_inode)); in mknod()
618 nod.0.lock().metadata.file_type = FileType::BlockDevice; in mknod()
621 nod.0.lock().metadata.file_type = FileType::CharDevice; in mknod()
630 return self.0.lock().special_node.clone(); in special_node()
634 Ok(self.0.lock().name.clone()) in dname()
639 .lock() in parent()