projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0a2472
)
staging/lustre/fld: Replace OBD_ALLOC_GFP with kzalloc
author
Oleg Drokin
<
[email protected]
>
Wed, 16 Sep 2015 16:26:59 +0000
(12:26 -0400)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 17 Sep 2015 03:32:11 +0000
(20:32 -0700)
Part of effort to get rid of custom Lustre allocation macros.
Signed-off-by: Oleg Drokin <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/lustre/lustre/fld/fld_cache.c
patch
|
blob
|
history
diff --git
a/drivers/staging/lustre/lustre/fld/fld_cache.c
b/drivers/staging/lustre/lustre/fld/fld_cache.c
index 1b1066b2461ceadb6aeb01e7d12fe76d1b89fa83..5eeb36dc988fe8d7d7073081727af699d87eef26 100644
(file)
--- a/
drivers/staging/lustre/lustre/fld/fld_cache.c
+++ b/
drivers/staging/lustre/lustre/fld/fld_cache.c
@@
-266,7
+266,7
@@
static void fld_cache_punch_hole(struct fld_cache *cache,
const u64 new_end = range->lsr_end;
struct fld_cache_entry *fldt;
-
OBD_ALLOC_GFP(fldt,
sizeof(*fldt), GFP_ATOMIC);
+
fldt = kzalloc(
sizeof(*fldt), GFP_ATOMIC);
if (!fldt) {
kfree(f_new);
/* overlap is not allowed, so dont mess up list. */