forked from luck/tmp_suning_uos_patched
ad3d6c7263
The xa_load function brings with it a lot of infrastructure; xa_empty(), xa_is_err(), and large chunks of the XArray advanced API that are used to implement xa_load. As the test-suite demonstrates, it is possible to use the XArray functions on a radix tree. The radix tree functions depend on the GFP flags being stored in the root of the tree, so it's not possible to use the radix tree functions on an XArray. Signed-off-by: Matthew Wilcox <willy@infradead.org>
13 lines
318 B
C
13 lines
318 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _RCUPDATE_H
|
|
#define _RCUPDATE_H
|
|
|
|
#include <urcu.h>
|
|
|
|
#define rcu_dereference_raw(p) rcu_dereference(p)
|
|
#define rcu_dereference_protected(p, cond) rcu_dereference(p)
|
|
#define rcu_dereference_check(p, cond) rcu_dereference(p)
|
|
#define RCU_INIT_POINTER(p, v) (p) = (v)
|
|
|
|
#endif
|