Lines Matching refs:InodeState
95 struct InodeState { struct
114 impl InodeState { argument
116 InodeState { entry, handle_ref_count: AtomicU64::new(0), unlinked: false } in new()
120 InodeState { entry, handle_ref_count: AtomicU64::new(handle_ref_count), unlinked: false } in new_with_ref_count()
190 inode_table: RwLock<BTreeMap<Inode, InodeState>>,
220 InodeState::new(AuthFsEntry::ReadonlyDirectory { dir: InMemoryDir::new() }), in new()
282 .insert(new_inode, InodeState::new(new_dir_entry)) in add_entry_at_ro_dir_by_path()
305 if inode_table.insert(new_inode, InodeState::new(entry)).is_some() { in add_entry_at_ro_dir_by_path()
349 |InodeState { entry, .. }| { in create_new_entry_with_ref_count()
358 entry.insert(InodeState::new_with_ref_count(new_file_entry, 1)); in create_new_entry_with_ref_count()
534 |InodeState { entry, handle_ref_count, .. }| { in lookup()
575 |InodeState { handle_ref_count, unlinked, .. }| { in forget()
772 handle_inode_mut_locked(&mut inode_table, &inode, |InodeState { entry, .. }| match entry { in setattr()
891 |InodeState { entry, unlinked, .. }| match entry { in unlink()
936 |InodeState { entry, unlinked, .. }| match entry { in rmdir()
1023 inode_table: &BTreeMap<Inode, InodeState>, in handle_inode_locked() argument
1028 F: FnOnce(&InodeState) -> io::Result<R>, in handle_inode_locked()
1038 inode_table: &mut BTreeMap<Inode, InodeState>, in handle_inode_mut_locked() argument
1043 F: FnOnce(&mut InodeState) -> io::Result<R>, in handle_inode_mut_locked()