summaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
authorNeilBrown2019-04-02 01:07:45 +0200
committerDavid S. Miller2019-04-08 04:12:12 +0200
commitff302db965b57c141297911ea647d36d11fedfbe (patch)
tree4b6cdddf64de3c58e867a1886e5240c078df121b /ipc
parentrhashtable: use cmpxchg() in nested_table_alloc() (diff)
downloadkernel-qcow2-linux-ff302db965b57c141297911ea647d36d11fedfbe.tar.gz
kernel-qcow2-linux-ff302db965b57c141297911ea647d36d11fedfbe.tar.xz
kernel-qcow2-linux-ff302db965b57c141297911ea647d36d11fedfbe.zip
rhashtable: allow rht_bucket_var to return NULL.
Rather than returning a pointer to a static nulls, rht_bucket_var() now returns NULL if the bucket doesn't exist. This will make the next patch, which stores a bitlock in the bucket pointer, somewhat cleaner. This change involves introducing __rht_bucket_nested() which is like rht_bucket_nested(), but doesn't provide the static nulls, and changing rht_bucket_nested() to call this and possible provide a static nulls - as is still needed for the non-var case. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions