summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/SyntheticFileSystem.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-01 18:01:28 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-01 18:01:28 +0200
commitbba2c062fea64a4024c390e8a6c489894049d138 (patch)
treee733dd4752272e631e9c77d822541c871a9fc173 /Kernel/FileSystem/SyntheticFileSystem.cpp
parent49768524d4c3cdc5358c81e92062b9e89ec1e9d1 (diff)
downloadserenity-bba2c062fea64a4024c390e8a6c489894049d138.zip
FileSystem: Make Inode::lookup() take a StringView.
This avoids a lot of String allocation during path resolution.
Diffstat (limited to 'Kernel/FileSystem/SyntheticFileSystem.cpp')
-rw-r--r--Kernel/FileSystem/SyntheticFileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/SyntheticFileSystem.cpp b/Kernel/FileSystem/SyntheticFileSystem.cpp
index 12a8e84186..9dc2711319 100644
--- a/Kernel/FileSystem/SyntheticFileSystem.cpp
+++ b/Kernel/FileSystem/SyntheticFileSystem.cpp
@@ -231,7 +231,7 @@ bool SynthFSInode::traverse_as_directory(Function<bool(const FS::DirectoryEntry&
return true;
}
-InodeIdentifier SynthFSInode::lookup(const String& name)
+InodeIdentifier SynthFSInode::lookup(StringView name)
{
LOCKER(m_lock);
ASSERT(is_directory());