Kernel: Convert Inode event APIs to use StringViews instead of Strings

These APIs allocate a copy internally anyways, so there's no point to
making another one for them.
This commit is contained in:
Idan Horowitz
2022-01-11 22:04:53 +02:00
parent d1d24eaef4
commit e236f9d85a
4 changed files with 7 additions and 6 deletions

View File

@@ -202,7 +202,7 @@ void Inode::set_metadata_dirty(bool metadata_dirty)
}
}
void Inode::did_add_child(InodeIdentifier, String const& name)
void Inode::did_add_child(InodeIdentifier, StringView name)
{
MutexLocker locker(m_inode_lock);
@@ -211,7 +211,7 @@ void Inode::did_add_child(InodeIdentifier, String const& name)
}
}
void Inode::did_remove_child(InodeIdentifier, String const& name)
void Inode::did_remove_child(InodeIdentifier, StringView name)
{
MutexLocker locker(m_inode_lock);