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:
parent
3bd47a2e09
commit
75a24c3a1f
3 changed files with 12 additions and 11 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue