diff options
author | Yehuda Sadeh <yehuda@hq.newdream.net> | 2010-04-06 17:33:58 -0400 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-17 18:25:42 -0400 |
commit | 34d23762d988b7dcb08390ac72a353df3d60193c (patch) | |
tree | 3a49d039527548697165da2b8789f3588b95ffed /fs/ceph/msgpool.c | |
parent | 23804d91f112df09b832cd091b71af4dc2831aa8 (diff) |
ceph: all allocation functions should get gfp_mask
This is essential, as for the rados block device we'll need
to run in different contexts that would need flags that
are other than GFP_NOFS.
Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/msgpool.c')
-rw-r--r-- | fs/ceph/msgpool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/msgpool.c b/fs/ceph/msgpool.c index 50fe5cc5de76..dd65a6438131 100644 --- a/fs/ceph/msgpool.c +++ b/fs/ceph/msgpool.c | |||
@@ -12,7 +12,7 @@ static void *alloc_fn(gfp_t gfp_mask, void *arg) | |||
12 | struct ceph_msgpool *pool = arg; | 12 | struct ceph_msgpool *pool = arg; |
13 | void *p; | 13 | void *p; |
14 | 14 | ||
15 | p = ceph_msg_new(0, pool->front_len); | 15 | p = ceph_msg_new(0, pool->front_len, gfp_mask); |
16 | if (!p) | 16 | if (!p) |
17 | pr_err("msgpool %s alloc failed\n", pool->name); | 17 | pr_err("msgpool %s alloc failed\n", pool->name); |
18 | return p; | 18 | return p; |
@@ -48,7 +48,7 @@ struct ceph_msg *ceph_msgpool_get(struct ceph_msgpool *pool, | |||
48 | WARN_ON(1); | 48 | WARN_ON(1); |
49 | 49 | ||
50 | /* try to alloc a fresh message */ | 50 | /* try to alloc a fresh message */ |
51 | return ceph_msg_new(0, front_len); | 51 | return ceph_msg_new(0, front_len, GFP_NOFS); |
52 | } | 52 | } |
53 | 53 | ||
54 | return mempool_alloc(pool->pool, GFP_NOFS); | 54 | return mempool_alloc(pool->pool, GFP_NOFS); |