Whamcloud - gitweb
pointer to super-block lives in osd_device, use it
authornikita <nikita>
Wed, 12 Apr 2006 21:02:45 +0000 (21:02 +0000)
committernikita <nikita>
Wed, 12 Apr 2006 21:02:45 +0000 (21:02 +0000)
lustre/include/linux/lu_object.h
lustre/osd/osd_handler.c

index cbd31cf..13fe4b5 100644 (file)
@@ -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 {
index d516071..6a48808 100644 (file)
@@ -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;