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
/
quota
/
quota_master.c
diff --git
a/lustre/quota/quota_master.c
b/lustre/quota/quota_master.c
index
62b7127
..
77c5186
100644
(file)
--- a/
lustre/quota/quota_master.c
+++ b/
lustre/quota/quota_master.c
@@
-141,7
+141,7
@@
static struct lustre_dquot *alloc_dquot(struct lustre_quota_info *lqi,
struct lustre_dquot *dquot = NULL;
ENTRY;
- OBD_SLAB_ALLOC
(dquot, lustre_dquot_cachep, CFS_ALLOC_IO, sizeof(*dquot)
);
+ OBD_SLAB_ALLOC
_PTR_GFP(dquot, lustre_dquot_cachep, CFS_ALLOC_IO
);
if (dquot == NULL)
RETURN(NULL);