Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
OBD_SLAB_ALLOC_PTR_SAFE() is a new OBD_ macro for slab allocation that uses CFS_ALLOC...
[fs/lustre-release.git]
/
lustre
/
lclient
/
lcommon_cl.c
diff --git
a/lustre/lclient/lcommon_cl.c
b/lustre/lclient/lcommon_cl.c
index
c06573a
..
2b96562
100644
(file)
--- a/
lustre/lclient/lcommon_cl.c
+++ b/
lustre/lclient/lcommon_cl.c
@@
-144,7
+144,7
@@
void *ccc_key_init(const struct lu_context *ctx,
{
struct ccc_thread_info *info;
- OBD_SLAB_ALLOC_PTR
(info, ccc_thread_kmem
);
+ OBD_SLAB_ALLOC_PTR
_GFP(info, ccc_thread_kmem, CFS_ALLOC_IO
);
if (info == NULL)
info = ERR_PTR(-ENOMEM);
return info;
@@
-162,7
+162,7
@@
void *ccc_session_key_init(const struct lu_context *ctx,
{
struct ccc_session *session;
- OBD_SLAB_ALLOC_PTR
(session, ccc_session_kmem
);
+ OBD_SLAB_ALLOC_PTR
_GFP(session, ccc_session_kmem, CFS_ALLOC_IO
);
if (session == NULL)
session = ERR_PTR(-ENOMEM);
return session;
@@
-280,7
+280,7
@@
int ccc_req_init(const struct lu_env *env, struct cl_device *dev,
struct ccc_req *vrq;
int result;
- OBD_SLAB_ALLOC_PTR
(vrq, ccc_req_kmem
);
+ OBD_SLAB_ALLOC_PTR
_GFP(vrq, ccc_req_kmem, CFS_ALLOC_IO
);
if (vrq != NULL) {
cl_req_slice_add(req, &vrq->crq_cl, dev, &ccc_req_ops);
result = 0;
@@
-345,7
+345,7
@@
struct lu_object *ccc_object_alloc(const struct lu_env *env,
struct ccc_object *vob;
struct lu_object *obj;
- OBD_SLAB_ALLOC_PTR
(vob, ccc_object_kmem
);
+ OBD_SLAB_ALLOC_PTR
_GFP(vob, ccc_object_kmem, CFS_ALLOC_IO
);
if (vob != NULL) {
struct cl_object_header *hdr;
@@
-413,7
+413,7
@@
int ccc_lock_init(const struct lu_env *env,
CLOBINVRNT(env, obj, ccc_object_invariant(obj));
- OBD_SLAB_ALLOC_PTR
(clk, ccc_lock_kmem
);
+ OBD_SLAB_ALLOC_PTR
_GFP(clk, ccc_lock_kmem, CFS_ALLOC_IO
);
if (clk != NULL) {
cl_lock_slice_add(lock, &clk->clk_cl, obj, lkops);
result = 0;