futex: Untangle and naming
Untangle the futex_private_hash::users increment from finding the hb.
hb = __futex_hash(key) /* finds the hb */
hb = futex_hash(key) /* finds the hb and inc users */
Use __futex_hash() for re-hashing, notably allowing to rehash into the
global hash.
This gets us:
hb = futex_hash(key) /* gets hb and inc users */
futex_hash_get(hb) /* inc users */
futex_hash_put(hb) /* dec users */
But then we have:
fph = futex_get_private_hash() /* get fph and inc */
futex_put_private_hash() /* dec */
Which doesn't match naming, so change to:
fph = futex_private_hash() /* get and inc */
futex_private_hash_get(fph) /* inc */
futex_private_hash_put(fph) /* dec */
Add a CLASS for the private_hash, to clean up some trivial wrappers.
Additional random renaming that happened while mucking about with the
code.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
3 files changed