aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/msgpool.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-04-01 19:07:23 -0400
committerSage Weil <sage@newdream.net>2010-05-17 18:25:19 -0400
commitbb257664f748bcfc80715f85f70f0f560caec3b4 (patch)
tree0f03c628328082e660c6a60f6094cde478dadec9 /fs/ceph/msgpool.c
parenta79832f26be370ee26ea81eecdfd42d10e49d66a (diff)
ceph: simplify ceph_msg_new
We only need to pass in front_len. Callers can attach any other payload pieces (middle, data) as they see fit. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/msgpool.c')
-rw-r--r--fs/ceph/msgpool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/msgpool.c b/fs/ceph/msgpool.c
index 04fea84890da..10d3632cc403 100644
--- a/fs/ceph/msgpool.c
+++ b/fs/ceph/msgpool.c
@@ -11,7 +11,7 @@ static void *alloc_fn(gfp_t gfp_mask, void *arg)
11{ 11{
12 struct ceph_msgpool *pool = arg; 12 struct ceph_msgpool *pool = arg;
13 13
14 return ceph_msg_new(0, pool->front_len, 0, 0, NULL); 14 return ceph_msg_new(0, pool->front_len);
15} 15}
16 16
17static void free_fn(void *element, void *arg) 17static void free_fn(void *element, void *arg)
@@ -43,7 +43,7 @@ struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *pool,
43 WARN_ON(1); 43 WARN_ON(1);
44 44
45 /* try to alloc a fresh message */ 45 /* try to alloc a fresh message */
46 return ceph_msg_new(0, front_len, 0, 0, NULL); 46 return ceph_msg_new(0, front_len);
47 } 47 }
48 48
49 return mempool_alloc(pool->pool, GFP_NOFS); 49 return mempool_alloc(pool->pool, GFP_NOFS);