#ifndef _FS_CEPH_STRING_TABLE_H #define _FS_CEPH_STRING_TABLE_H #include <linux/types.h> #include <linux/kref.h> #include <linux/rbtree.h> #include <linux/rcupdate.h> struct ceph_string { struct kref kref; union { struct rb_node node; struct rcu_head rcu; }; size_t len; char str[]; }; extern void ceph_release_string(struct kref *ref); extern struct ceph_string *ceph_find_or_create_string(const char *str, size_t len); extern bool ceph_strings_empty(void);
static inline struct ceph_string *ceph_get_string(struct ceph_string *str) { kref_get(&str->kref); return str; }Contributors
Person | Tokens | Prop | Commits | CommitProp | |
zhen yan | zhen yan | 25 | 100.00% | 1 | 100.00% |
Total | 25 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
zhen yan | zhen yan | 28 | 100.00% | 1 | 100.00% |
Total | 28 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
zhen yan | zhen yan | 63 | 100.00% | 1 | 100.00% |
Total | 63 | 100.00% | 1 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp | |
zhen yan | zhen yan | 204 | 100.00% | 1 | 100.00% |
Total | 204 | 100.00% | 1 | 100.00% |