Add signature for atomic fetch/store uintptr_t.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Add signature for atomic fetch/store void *.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Use atomic fetch/store for cached lookups.

The caller holds only a non-exclusive lock, which isn't
sufficient to update the cache.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Dont need atomic update when XLOCK.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Cache Inode intrusive lookup table.

Incremental.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Incremental.

TODO:

* save hash input data with hash, don't forget to clean it up
* refactor cih_set_locked, maybe restore latch guy

Signed-off-by: Matt Benjamin <matt@linuxbox.com>