From afa5440ed331527e6c2bce82aa08dc96bb045b6d Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 3 Apr 2006 15:27:28 +0000 Subject: [PATCH] add temporary backpointer from lu_device to obd_device --- lustre/include/linux/lu_object.h | 3 +++ lustre/include/linux/obd_class.h | 1 + 2 files changed, 4 insertions(+) diff --git a/lustre/include/linux/lu_object.h b/lustre/include/linux/lu_object.h index e2cee58..42beb50 100644 --- a/lustre/include/linux/lu_object.h +++ b/lustre/include/linux/lu_object.h @@ -182,6 +182,9 @@ struct lu_device { struct lu_device_operations *ld_ops; struct lu_site *ld_site; struct proc_dir_entry *ld_proc_entry; + + /* XXX: temporary back pointer into obd. */ + struct obd_device *ld_obd; }; struct lu_device_type_operations; diff --git a/lustre/include/linux/obd_class.h b/lustre/include/linux/obd_class.h index 409ac7b..2757b5f 100644 --- a/lustre/include/linux/obd_class.h +++ b/lustre/include/linux/obd_class.h @@ -318,6 +318,7 @@ static inline int obd_setup(struct obd_device *obd, struct lustre_cfg *cfg) d = ldt->ldt_ops->ldto_device_alloc(ldt, cfg); if (!IS_ERR(d)) { obd->obd_lu_dev = d; + d->ld_obd = obd; rc = 0; } else rc = PTR_ERR(d); -- 1.8.3.1