| 46 | static struct rwlock __exclusive_cache_line vfs_hash_lock; |
| 47 | |
| 48 | static void |
| 49 | vfs_hashinit(void *dummy __unused) |
| 50 | { |
| 51 | |
| 52 | vfs_hash_tbl = hashinit(desiredvnodes, M_VFS_HASH, &vfs_hash_mask); |
| 53 | rw_init(&vfs_hash_lock, "vfs hash"); |
| 54 | LIST_INIT(&vfs_hash_side); |
| 55 | } |
| 56 | |
| 57 | /* Must be SI_ORDER_SECOND so desiredvnodes is available */ |
| 58 | SYSINIT(vfs_hash, SI_SUB_VFS, SI_ORDER_SECOND, vfs_hashinit, NULL); |