mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 01:20:25 +00:00
Kernel: Avoid unnecessary String allocation in sys$statvfs()
This commit is contained in:
parent
6ad427993a
commit
a27c6f5226
Notes:
sideshowbarker
2024-07-18 04:31:59 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a27c6f52268
2 changed files with 2 additions and 2 deletions
|
@ -536,7 +536,7 @@ private:
|
|||
KResult do_exec(NonnullRefPtr<FileDescription> main_program_description, Vector<String> arguments, Vector<String> environment, RefPtr<FileDescription> interpreter_description, Thread*& new_main_thread, u32& prev_flags, const ElfW(Ehdr) & main_program_header);
|
||||
KResultOr<FlatPtr> do_write(FileDescription&, const UserOrKernelBuffer&, size_t);
|
||||
|
||||
KResultOr<FlatPtr> do_statvfs(String path, statvfs* buf);
|
||||
KResultOr<FlatPtr> do_statvfs(StringView path, statvfs* buf);
|
||||
|
||||
KResultOr<RefPtr<FileDescription>> find_elf_interpreter_for_executable(String const& path, ElfW(Ehdr) const& main_executable_header, size_t main_executable_header_size, size_t file_size);
|
||||
|
||||
|
|
|
@ -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…
Reference in a new issue