/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) 2012 Red Hat. All rights reserved. */ #ifndef BTRFS_RCU_STRING_H #define BTRFS_RCU_STRING_H struct rcu_string { struct rcu_head rcu; char str[0]; };
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); if (!ret) return ret; strncpy(ret->str, src, len); return ret; }Contributors
| Person | Tokens | Prop | Commits | CommitProp |
| Josef Bacik | 74 | 100.00% | 1 | 100.00% |
| Total | 74 | 100.00% | 1 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| Josef Bacik | 23 | 100.00% | 1 | 100.00% |
| Total | 23 | 100.00% | 1 | 100.00% |
| Person | Tokens | Prop | Commits | CommitProp |
| Josef Bacik | 137 | 93.20% | 1 | 50.00% |
| David Sterba | 10 | 6.80% | 1 | 50.00% |
| Total | 147 | 100.00% | 2 | 100.00% |