1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-30 00:42:07 +00:00

Kernel: More use of NonnullRefPtrVector in the kernel.

This commit is contained in:
Andreas Kling 2019-06-27 13:44:26 +02:00
parent 3bd47a2e09
commit 75a24c3a1f
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()