aboutsummaryrefslogtreecommitdiff
path: root/kernel/src/filesystem/mount_table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/src/filesystem/mount_table.cpp')
-rw-r--r--kernel/src/filesystem/mount_table.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/src/filesystem/mount_table.cpp b/kernel/src/filesystem/mount_table.cpp
index 0e9a53d..b4a906b 100644
--- a/kernel/src/filesystem/mount_table.cpp
+++ b/kernel/src/filesystem/mount_table.cpp
@@ -18,11 +18,11 @@ namespace filesystem
auto mount_table::find_mount_by_dentry(kstd::shared_ptr<dentry> const & dentry) -> kstd::shared_ptr<mount>
{
- auto found =
+ auto it =
std::ranges::find_if(m_mounts, [&](auto const & mount) { return mount->get_dentry().get() == dentry.get(); });
- if (found != m_mounts.end())
+ if (it != m_mounts.end())
{
- return *found;
+ return *it;
}
kapi::system::panic("[FILESYSTEM] dentry has mount flag set but no corresponding mount found.");
}