Lines Matching refs:guard

1362         let mut guard: SpinLockGuard<FATInode> = self.0.lock();  in read_at()  localVariable
1363 match &guard.inode_type { in read_at()
1366 &guard.fs.upgrade().unwrap(), in read_at()
1370 guard.update_metadata(); in read_at()
1390 let mut guard: SpinLockGuard<FATInode> = self.0.lock(); in write_at() localVariable
1391 let fs: &Arc<FATFileSystem> = &guard.fs.upgrade().unwrap(); in write_at()
1393 match &mut guard.inode_type { in write_at()
1396 guard.update_metadata(); in write_at()
1429 let mut guard: SpinLockGuard<FATInode> = self.0.lock(); in create() localVariable
1430 let fs: &Arc<FATFileSystem> = &guard.fs.upgrade().unwrap(); in create()
1432 match &mut guard.inode_type { in create()
1439 return Ok(guard.find(name)?); in create()
1443 return Ok(guard.find(name)?); in create()
1468 let mut guard: SpinLockGuard<FATInode> = self.0.lock(); in resize() localVariable
1469 let fs: &Arc<FATFileSystem> = &guard.fs.upgrade().unwrap(); in resize()
1470 let old_size = guard.metadata.size as usize; in resize()
1472 match &mut guard.inode_type { in resize()
1495 guard.update_metadata(); in resize()
1507 let mut guard: SpinLockGuard<FATInode> = self.0.lock(); in list() localVariable
1508 let fatent: &FATDirEntry = &guard.inode_type; in list()
1516 let dir_iter: FATDirIter = dir.to_iter(guard.fs.upgrade().unwrap()); in list()
1524 if guard.children.contains_key(&name.to_uppercase()) == false in list()
1530 guard.fs.upgrade().unwrap(), in list()
1531 guard.self_ref.clone(), in list()
1535 guard in list()
1550 let mut guard: SpinLockGuard<FATInode> = self.0.lock(); in find() localVariable
1551 let target = guard.find(name)?; in find()
1564 let mut guard: SpinLockGuard<FATInode> = self.0.lock(); in unlink() localVariable
1565 let target: Arc<LockedFATInode> = guard.find(name)?; in unlink()
1569 guard.children.remove(&name.to_uppercase()); in unlink()
1571 let dir = match &guard.inode_type { in unlink()
1582 dir.check_existence(name, Some(false), guard.fs.upgrade().unwrap())?; in unlink()
1585 let r = dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in unlink()
1591 let mut guard: SpinLockGuard<FATInode> = self.0.lock(); in rmdir() localVariable
1592 let target: Arc<LockedFATInode> = guard.find(name)?; in rmdir()
1596 guard.children.remove(&name.to_uppercase()); in rmdir()
1598 let dir = match &guard.inode_type { in rmdir()
1609 dir.check_existence(name, Some(true), guard.fs.upgrade().unwrap())?; in rmdir()
1613 dir.remove(guard.fs.upgrade().unwrap().clone(), name, true); in rmdir()
1620 guard.children.insert(name.to_uppercase(), target.clone()); in rmdir()
1628 let guard: SpinLockGuard<FATInode> = self.0.lock(); in get_entry_name() localVariable
1629 if guard.metadata.file_type != FileType::Dir { in get_entry_name()
1642 let mut key: Vec<String> = guard in get_entry_name()
1645 .filter(|k| guard.children.get(*k).unwrap().metadata().unwrap().inode_id == ino) in get_entry_name()
1652 …nt inode_id={inode_id}, to find={to_find}", key_len=key.len(), inode_id = guard.metadata.inode_id,… in get_entry_name()