Kernel: More use of NonnullRefPtrVector in the kernel.

This commit is contained in:
Andreas Kling 2019-06-27 13:44:26 +02:00
commit 75a24c3a1f
Notes: sideshowbarker 2024-07-19 13:28:23 +09:00
3 changed files with 12 additions and 11 deletions

View file

@ -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()