fix missing locks in the vfs subsystem
[lunaix-os.git] / lunaix-os / kernel / fs / mount.c
index b62b77faa8788d273888a7828933a56b0c1ffa13..1dee55a1d946626b6bf95e903153fc48b7d54d46 100644 (file)
@@ -86,8 +86,8 @@ __vfs_do_unmount(struct v_mount* mnt)
 
     // detached the inodes from cache, and let lru policy to recycle them
     for (size_t i = 0; i < VFS_HASHTABLE_SIZE; i++) {
-        __detach_node_cache_ref(&sb->i_cache[i]);
-        __detach_node_cache_ref(&sb->d_cache[i]);
+        __detach_node_cache_ref(&sb->i_cache.pool[i]);
+        __detach_node_cache_ref(&sb->d_cache.pool[i]);
     }
 
     struct v_dnode *pos, *next;