1
2 #ifndef _FS_CEPH_MSGPOOL
3 #define _FS_CEPH_MSGPOOL
4
5 #include <linux/mempool.h>
6
7
8
9
10
11 struct ceph_msgpool {
12 const char *name;
13 mempool_t *pool;
14 int type;
15 int front_len;
16 int max_data_items;
17 };
18
19 int ceph_msgpool_init(struct ceph_msgpool *pool, int type,
20 int front_len, int max_data_items, int size,
21 const char *name);
22 extern void ceph_msgpool_destroy(struct ceph_msgpool *pool);
23 struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *pool, int front_len,
24 int max_data_items);
25 extern void ceph_msgpool_put(struct ceph_msgpool *, struct ceph_msg *);
26
27 #endif