Rev 2742 | Rev 3653 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2742 | Rev 2766 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | */ |
36 | */ |
37 | 37 | ||
38 | #include "vfs.h" |
38 | #include "vfs.h" |
39 | #include <stdlib.h> |
39 | #include <stdlib.h> |
40 | #include <string.h> |
40 | #include <string.h> |
41 | #include <atomic.h> |
- | |
42 | #include <futex.h> |
41 | #include <futex.h> |
43 | #include <rwlock.h> |
42 | #include <rwlock.h> |
44 | #include <libadt/hash_table.h> |
43 | #include <libadt/hash_table.h> |
45 | #include <assert.h> |
44 | #include <assert.h> |
46 | #include <async.h> |
45 | #include <async.h> |
47 | #include <errno.h> |
46 | #include <errno.h> |
48 | 47 | ||
49 | /** Futex protecting the VFS node hash table. */ |
48 | /** Futex protecting the VFS node hash table. */ |
50 | atomic_t nodes_futex = FUTEX_INITIALIZER; |
49 | futex_t nodes_futex = FUTEX_INITIALIZER; |
51 | 50 | ||
52 | #define NODES_BUCKETS_LOG 8 |
51 | #define NODES_BUCKETS_LOG 8 |
53 | #define NODES_BUCKETS (1 << NODES_BUCKETS_LOG) |
52 | #define NODES_BUCKETS (1 << NODES_BUCKETS_LOG) |
54 | 53 | ||
55 | /** VFS node hash table containing all active, in-memory VFS nodes. */ |
54 | /** VFS node hash table containing all active, in-memory VFS nodes. */ |