diff options
Diffstat (limited to 'Kernel/FileSystem/Inode.cpp')
-rw-r--r-- | Kernel/FileSystem/Inode.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Kernel/FileSystem/Inode.cpp b/Kernel/FileSystem/Inode.cpp index 57cd4af8e1..19d78684b3 100644 --- a/Kernel/FileSystem/Inode.cpp +++ b/Kernel/FileSystem/Inode.cpp @@ -1,3 +1,4 @@ +#include <AK/NonnullRefPtrVector.h> #include <AK/StringBuilder.h> #include <Kernel/FileSystem/Inode.h> #include <Kernel/Net/LocalSocket.h> @@ -13,7 +14,7 @@ HashTable<Inode*>& all_inodes() void Inode::sync() { - Vector<NonnullRefPtr<Inode>, 32> inodes; + NonnullRefPtrVector<Inode, 32> inodes; { InterruptDisabler disabler; for (auto* inode : all_inodes()) { @@ -23,8 +24,8 @@ void Inode::sync() } for (auto& inode : inodes) { - ASSERT(inode->is_metadata_dirty()); - inode->flush_metadata(); + ASSERT(inode.is_metadata_dirty()); + inode.flush_metadata(); } } |