summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Ext2FileSystem.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-09 10:25:19 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-09 10:25:19 +0200
commit8258b699dbed5af8ce402ae6729666cbb31fb39e (patch)
tree7396f374262d8ba491febf891182da5934d38b43 /Kernel/FileSystem/Ext2FileSystem.cpp
parentcdb44be7033f1253c1f4b3e4564de94bd67182da (diff)
downloadserenity-8258b699dbed5af8ce402ae6729666cbb31fb39e.zip
Kernel: Use StringView more in Inode and subclasses.
Diffstat (limited to 'Kernel/FileSystem/Ext2FileSystem.cpp')
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.cpp b/Kernel/FileSystem/Ext2FileSystem.cpp
index 68116421cb..753863dcd5 100644
--- a/Kernel/FileSystem/Ext2FileSystem.cpp
+++ b/Kernel/FileSystem/Ext2FileSystem.cpp
@@ -704,7 +704,7 @@ bool Ext2FSInode::traverse_as_directory(Function<bool(const FS::DirectoryEntry&)
return true;
}
-KResult Ext2FSInode::add_child(InodeIdentifier child_id, const String& name, mode_t mode)
+KResult Ext2FSInode::add_child(InodeIdentifier child_id, const StringView& name, mode_t mode)
{
LOCKER(m_lock);
ASSERT(is_directory());
@@ -739,7 +739,7 @@ KResult Ext2FSInode::add_child(InodeIdentifier child_id, const String& name, mod
return KSuccess;
}
-KResult Ext2FSInode::remove_child(const String& name)
+KResult Ext2FSInode::remove_child(const StringView& name)
{
LOCKER(m_lock);
#ifdef EXT2_DEBUG