summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/FileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/FileSystem/FileSystem.cpp')
-rw-r--r--Kernel/FileSystem/FileSystem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/FileSystem/FileSystem.cpp b/Kernel/FileSystem/FileSystem.cpp
index 885087fbef..1a8753e38a 100644
--- a/Kernel/FileSystem/FileSystem.cpp
+++ b/Kernel/FileSystem/FileSystem.cpp
@@ -58,15 +58,15 @@ void FS::sync()
{
Inode::sync();
- Vector<NonnullRefPtr<FS>, 32> fses;
+ NonnullRefPtrVector<FS, 32> fses;
{
InterruptDisabler disabler;
for (auto& it : all_fses())
fses.append(*it.value);
}
- for (auto fs : fses)
- fs->flush_writes();
+ for (auto& fs : fses)
+ fs.flush_writes();
}
void FS::lock_all()