Code

zfs_arc: pass reference in llist instead of value
authorMarc Fournier <marc.fournier@camptocamp.com>
Wed, 23 Jul 2014 21:12:11 +0000 (23:12 +0200)
committerMarc 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

index ebfc54b4453c1e00166ae6dfc08e0695eac09b44..c3c9cf9552f91df788b054204d034ccad00f1de0 100644 (file)
@@ -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.");