diff options
| author | Lukas Oesch <lukasoesch20@gmail.com> | 2026-05-16 16:12:36 +0200 |
|---|---|---|
| committer | Lukas Oesch <lukasoesch20@gmail.com> | 2026-05-16 16:12:36 +0200 |
| commit | 3b2f36d242eb895fd893ec7a674ff608f44f69ac (patch) | |
| tree | 86d5515593b5e4dd937b20a626f9cf3a0d428cdd /kernel/src/filesystem/mount.cpp | |
| parent | 106e9731aaf856f940592c02953e49a496555822 (diff) | |
| download | kernel-3b2f36d242eb895fd893ec7a674ff608f44f69ac.tar.xz kernel-3b2f36d242eb895fd893ec7a674ff608f44f69ac.zip | |
refactoring
Diffstat (limited to 'kernel/src/filesystem/mount.cpp')
| -rw-r--r-- | kernel/src/filesystem/mount.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/src/filesystem/mount.cpp b/kernel/src/filesystem/mount.cpp index 1e04083..b64c370 100644 --- a/kernel/src/filesystem/mount.cpp +++ b/kernel/src/filesystem/mount.cpp @@ -27,7 +27,7 @@ namespace kernel::filesystem } } - auto mount::get_mount_dentry() const -> kstd::shared_ptr<dentry> const & + auto mount::mount_dentry() const -> kstd::shared_ptr<dentry> const & { return m_mount_dentry; } @@ -37,21 +37,21 @@ namespace kernel::filesystem return m_filesystem; } - auto mount::get_root_dentry() const -> kstd::shared_ptr<dentry> const & + auto mount::root_dentry() const -> kstd::shared_ptr<dentry> const & { return m_root_dentry; } - auto mount::get_mount_path() const -> kstd::string + auto mount::mount_path() const -> kstd::string { if (m_mount_dentry) { - return m_mount_dentry->get_absolute_path(); + return m_mount_dentry->absolute_path(); } return "/"; } - auto mount::get_parent_mount() const -> kstd::shared_ptr<mount> const & + auto mount::parent_mount() const -> kstd::shared_ptr<mount> const & { return m_parent_mount; } @@ -77,7 +77,7 @@ namespace kernel::filesystem return m_ref_count == 0; } - auto mount::get_ref_count() const -> size_t + auto mount::ref_count() const -> size_t { return m_ref_count; } |
