Explorar o código

Ext2FS: Fix hole in Ext2FSInode::directory_entry_count() locking.

Andreas Kling %!s(int64=6) %!d(string=hai) anos
pai
achega
d7d6deaa5c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Kernel/Ext2FileSystem.cpp

+ 1 - 1
Kernel/Ext2FileSystem.cpp

@@ -1324,8 +1324,8 @@ void Ext2FS::uncache_inode(InodeIndex index)
 size_t Ext2FSInode::directory_entry_count() const
 {
     ASSERT(is_directory());
-    populate_lookup_cache();
     LOCKER(m_lock);
+    populate_lookup_cache();
     return m_lookup_cache.size();
 }