aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel/src/filesystem/vfs.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/src/filesystem/vfs.cpp b/kernel/src/filesystem/vfs.cpp
index 1c4dd8b..483bae5 100644
--- a/kernel/src/filesystem/vfs.cpp
+++ b/kernel/src/filesystem/vfs.cpp
@@ -161,7 +161,8 @@ namespace filesystem
auto current_dentry = root_mount->root_dentry();
auto current_fs = root_mount->get_filesystem();
- while (current_dentry->has_flag(dentry::dentry_flags::dcache_mounted))
+ // TODO BA-FS26 use while to allow stacked mounts?
+ if (current_dentry->has_flag(dentry::dentry_flags::dcache_mounted))
{
auto mnt = m_mount_table.find_mount_by_dentry(current_dentry);
if (!mnt)
@@ -190,6 +191,7 @@ namespace filesystem
}
}
+ // TODO BA-FS26 use while to allow stacked mounts?
if (next_dentry->has_flag(dentry::dentry_flags::dcache_mounted))
{
auto found_mount = m_mount_table.find_mount_by_dentry(next_dentry);