Kernel: Fix harmless type miscast in Process::amount_clean_inode()

This commit is contained in:
Andreas Kling 2020-03-01 11:23:23 +01:00
parent e2697c2ddd
commit 95e3aec719
Notes: sideshowbarker 2024-07-19 08:57:37 +09:00

View file

@ -3091,10 +3091,10 @@ size_t Process::amount_dirty_private() const
size_t Process::amount_clean_inode() const
{
HashTable<const SharedInodeVMObject*> vmobjects;
HashTable<const InodeVMObject*> vmobjects;
for (auto& region : m_regions) {
if (region.vmobject().is_inode())
vmobjects.set(&static_cast<const SharedInodeVMObject&>(region.vmobject()));
vmobjects.set(&static_cast<const InodeVMObject&>(region.vmobject()));
}
size_t amount = 0;
for (auto& vmobject : vmobjects)