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:
parent
6ad427993a
commit
a27c6f5226
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue