#ifndef BTRFS_RCU_STRING_H
#define BTRFS_RCU_STRING_H
static inline struct rcu_string *rcu_string_strdup(const char *src, gfp_t mask)
size_t len = strlen(src) + 1;
struct rcu_string *ret = kzalloc(sizeof(struct rcu_string) +
(len * sizeof(char)), mask);
strncpy(ret->str, src, len);
static inline void rcu_string_free(struct rcu_string *str)
#define printk_in_rcu(fmt, ...) do { \
printk(fmt, __VA_ARGS__); \
#define printk_ratelimited_in_rcu(fmt, ...) do { \
printk_ratelimited(fmt, __VA_ARGS__); \
#define rcu_str_deref(rcu_str) ({ \
struct rcu_string *__str = rcu_dereference(rcu_str); \