diff options
Diffstat (limited to 'fs/ceph/msgpool.h')
| -rw-r--r-- | fs/ceph/msgpool.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/fs/ceph/msgpool.h b/fs/ceph/msgpool.h deleted file mode 100644 index a362605f9368..000000000000 --- a/fs/ceph/msgpool.h +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | #ifndef _FS_CEPH_MSGPOOL | ||
| 2 | #define _FS_CEPH_MSGPOOL | ||
| 3 | |||
| 4 | #include <linux/mempool.h> | ||
| 5 | #include "messenger.h" | ||
| 6 | |||
| 7 | /* | ||
| 8 | * we use memory pools for preallocating messages we may receive, to | ||
| 9 | * avoid unexpected OOM conditions. | ||
| 10 | */ | ||
| 11 | struct ceph_msgpool { | ||
| 12 | const char *name; | ||
| 13 | mempool_t *pool; | ||
| 14 | int front_len; /* preallocated payload size */ | ||
| 15 | }; | ||
| 16 | |||
| 17 | extern int ceph_msgpool_init(struct ceph_msgpool *pool, | ||
| 18 | int front_len, int size, bool blocking, | ||
| 19 | const char *name); | ||
| 20 | extern void ceph_msgpool_destroy(struct ceph_msgpool *pool); | ||
| 21 | extern struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *, | ||
| 22 | int front_len); | ||
| 23 | extern void ceph_msgpool_put(struct ceph_msgpool *, struct ceph_msg *); | ||
| 24 | |||
| 25 | #endif | ||
