mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18: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
|
@ -596,8 +596,8 @@ Optional<KBuffer> procfs$inodes(InodeIdentifier)
|
|||
extern InlineLinkedList<Inode>& all_inodes();
|
||||
KBufferBuilder builder;
|
||||
InterruptDisabler disabler;
|
||||
for (auto* inode = all_inodes().head(); inode; inode = inode->next()) {
|
||||
builder.appendf("Inode{K%x} %02u:%08u (%u)\n", inode, inode->fsid(), inode->index(), inode->ref_count());
|
||||
for (auto& inode : all_inodes()) {
|
||||
builder.appendf("Inode{K%x} %02u:%08u (%u)\n", &inode, inode.fsid(), inode.index(), inode.ref_count());
|
||||
}
|
||||
return builder.build();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue