aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/kernel/filesystem/mount.cpp6
-rw-r--r--kernel/kernel/filesystem/mount.hpp4
2 files changed, 0 insertions, 10 deletions
diff --git a/kernel/kernel/filesystem/mount.cpp b/kernel/kernel/filesystem/mount.cpp
index 616a9dbd..7381a160 100644
--- a/kernel/kernel/filesystem/mount.cpp
+++ b/kernel/kernel/filesystem/mount.cpp
@@ -65,7 +65,6 @@ namespace kernel::filesystem
auto [root_inode, driver_data] = *mount_result;
auto instance = attach(mount_dentry, fs, root_inode, driver_data, parent_mount, source_mount);
- instance->m_backing_inode = backing_inode;
return instance;
}
@@ -80,11 +79,6 @@ namespace kernel::filesystem
return m_filesystem;
}
- auto mount::backing_inode() const -> kstd::shared_ptr<inode> const &
- {
- return m_backing_inode;
- }
-
auto mount::root_dentry() const -> dentry_ptr const &
{
return m_root_dentry;
diff --git a/kernel/kernel/filesystem/mount.hpp b/kernel/kernel/filesystem/mount.hpp
index e8d9cf6a..cc032874 100644
--- a/kernel/kernel/filesystem/mount.hpp
+++ b/kernel/kernel/filesystem/mount.hpp
@@ -54,9 +54,6 @@ namespace kernel::filesystem
//! Get the filesystem instance being mounted.
[[nodiscard]] auto filesystem() const -> filesystem_ptr const &;
- //! Get the backing inode, if any, of this mount.
- [[nodiscard]] auto backing_inode() const -> inode_ptr const &;
-
//! Get the path at which the filesystem is mounted.
[[nodiscard]] auto mount_path() const -> kstd::string;
@@ -102,7 +99,6 @@ namespace kernel::filesystem
dentry_ptr m_mount_dentry{};
dentry_ptr m_root_dentry{};
filesystem_ptr m_filesystem{};
- inode_ptr m_backing_inode{};
mount_ptr m_parent_mount{};
kstd::weak_ptr<mount> m_source_mount{};
kstd::shared_ptr<void> m_driver_data{};