Whamcloud - gitweb
LU-1864 osd-zfs: Use the correct lu_site in arc_prune_func()
authorLi Wei <liwei@whamcloud.com>
Fri, 14 Sep 2012 02:23:31 +0000 (10:23 +0800)
committerOleg Drokin <green@whamcloud.com>
Fri, 21 Sep 2012 00:33:19 +0000 (20:33 -0400)
arc_prune_func() purges osd_device::od_site.  While this is correct on
orion and master, b2_3 does not initialize or use osd_device::od_site
at all.  This patch changes arc_prune_func() to use the correct
lu_site from osd_device::...::ld_site, which points to
ofd_device::ofd_site.

Change-Id: I2344886fd9bd5f6166907489c772f93a717ed5ad
Signed-off-by: Li Wei <liwei@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/3988
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
lustre/osd-zfs/osd_handler.c

index 3c2abe5..525747f 100644 (file)
@@ -94,7 +94,7 @@ static struct lu_kmem_descr osd_caches[] = {
 static void arc_prune_func(int64_t bytes, void *private)
 {
        struct osd_device *od = private;
-       struct lu_site    *site = &od->od_site;
+       struct lu_site    *site = od->od_dt_dev.dd_lu_dev.ld_site;
        struct lu_env      env;
        int rc;