mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
Kernel: Use range-for with InlineLinkedList
This commit is contained in:
parent
028e834bb4
commit
9104d32341
6 changed files with 21 additions and 21 deletions
|
@ -18,9 +18,9 @@ void Inode::sync()
|
|||
NonnullRefPtrVector<Inode, 32> inodes;
|
||||
{
|
||||
InterruptDisabler disabler;
|
||||
for (auto* inode = all_inodes().head(); inode; inode = inode->next()) {
|
||||
if (inode->is_metadata_dirty())
|
||||
inodes.append(*inode);
|
||||
for (auto& inode : all_inodes()) {
|
||||
if (inode.is_metadata_dirty())
|
||||
inodes.append(inode);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue