From: nikita Date: Wed, 12 Apr 2006 21:02:45 +0000 (+0000) Subject: pointer to super-block lives in osd_device, use it X-Git-Tag: v1_8_0_110~486^2~2029 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=a3a740e89c21ba8755222142474bec013808a9d8;p=fs%2Flustre-release.git pointer to super-block lives in osd_device, use it --- diff --git a/lustre/include/linux/lu_object.h b/lustre/include/linux/lu_object.h index cbd31cf..13fe4b5 100644 --- a/lustre/include/linux/lu_object.h +++ b/lustre/include/linux/lu_object.h @@ -491,7 +491,6 @@ struct dt_object_operations { struct dt_device { struct lu_device dd_lu_dev; struct dt_device_operations *dd_ops; - struct lustre_mount_info *dd_lmi; }; struct dt_object { diff --git a/lustre/osd/osd_handler.c b/lustre/osd/osd_handler.c index d516071..6a48808 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -199,7 +199,7 @@ static int osd_config(struct dt_device *d, const char *name, void *buf, int size, int mode) { struct osd_device *osd = dt2osd_dev(d); - struct super_block *sb = osd->od_dt_dev.dd_lmi->lmi_sb; + struct super_block *sb = osd->od_mount->lmi_sb; int result = -EOPNOTSUPP; ENTRY; @@ -216,7 +216,7 @@ static int osd_config(struct dt_device *d, const char *name, static int osd_statfs(struct dt_device *d, struct kstatfs *sfs) { struct osd_device *osd = dt2osd_dev(d); - struct super_block *sb = osd->od_dt_dev.dd_lmi->lmi_sb; + struct super_block *sb = osd->od_mount->lmi_sb; int result; ENTRY;