projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e0942f
)
zfs_arc: pass reference in llist instead of value
author
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 23 Jul 2014 21:12:11 +0000
(23:12 +0200)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 23 Jul 2014 21:12:11 +0000
(23:12 +0200)
This allows the actual values from getting stored, not the pointer
addresses.
src/zfs_arc.c
patch
|
blob
|
history
diff --git
a/src/zfs_arc.c
b/src/zfs_arc.c
index
ebfc54b
..
c3c9cf9
100644
(file)
--- a/
src/zfs_arc.c
+++ b/
src/zfs_arc.c
@@
-220,7
+220,7
@@
static int za_read (void)
{
llvalues[i] = atoll (fields[2]);
- e = llentry_create (fields[0],
&
llvalues[i]);
+ e = llentry_create (fields[0],
(void *)
llvalues[i]);
if (e == NULL)
{
ERROR ("zfs_arc plugin: `llentry_create' failed.");