1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:37:34 +00:00

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

This commit is contained in:
Andreas Kling 2021-09-07 13:02:07 +02:00
parent 6ad427993a
commit a27c6f5226
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();