Kernel: Avoid unnecessary String allocation in sys$statvfs()

This commit is contained in:
Andreas Kling 2021-09-07 13:02:07 +02:00
commit a27c6f5226
Notes: sideshowbarker 2024-07-18 04:31:59 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@
namespace Kernel {
KResultOr<FlatPtr> Process::do_statvfs(String path, statvfs* buf)
KResultOr<FlatPtr> Process::do_statvfs(StringView path, statvfs* buf)
{
auto custody = TRY(VirtualFileSystem::the().resolve_path(path, current_directory(), nullptr, 0));
auto& inode = custody->inode();