diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-27 13:44:26 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-27 13:44:26 +0200 |
commit | 75a24c3a1fe2c9ff36ca950a0de5b2a15a4db204 (patch) | |
tree | 3f2c7ad80e393b5032b1f2e722ff4738725a3f08 /Kernel/FileSystem/Inode.cpp | |
parent | 3bd47a2e09e31ade766d0cf0b743763ff115d0e2 (diff) | |
download | serenity-75a24c3a1fe2c9ff36ca950a0de5b2a15a4db204.zip |
Kernel: More use of NonnullRefPtrVector in the kernel.
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(); } } |