summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2010-11-22 20:58:06 +1100
committerNeilBrown <neilb@suse.de>2010-11-22 20:58:06 +1100
commit157e6e24b9790940918597e8a07020ca56ce6011 (patch)
treea6a5f2e3ad5f9d820f0f5754c70360fb555a62af
parentab3cb6b3b7418e4d70e915c47ca48422eb43d182 (diff)
Remove loaded_container
This field is now only set, never used. So remove it. Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r--mdadm.h2
-rw-r--r--super-ddf.c2
-rw-r--r--super-intel.c4
3 files changed, 0 insertions, 8 deletions
diff --git a/mdadm.h b/mdadm.h
index 13e1df94..9d5e1c0c 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -712,8 +712,6 @@ struct supertype {
int container_dev; /* devnum of container */
void *sb;
void *info;
- int loaded_container; /* Set if load_super found a container,
- * not just one device */
struct metadata_update *updates;
struct metadata_update **update_tail;
diff --git a/super-ddf.c b/super-ddf.c
index a97e05de..98c9d58b 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -850,7 +850,6 @@ static int load_super_ddf(struct supertype *st, int fd,
st->minor_version = 0;
st->max_devs = 512;
}
- st->loaded_container = 0;
return 0;
}
@@ -2877,7 +2876,6 @@ static int load_super_ddf_all(struct supertype *st, int fd,
st->max_devs = 512;
}
st->container_dev = fd2devnum(fd);
- st->loaded_container = 1;
return 0;
}
diff --git a/super-intel.c b/super-intel.c
index 4176b745..58d0fa74 100644
--- a/super-intel.c
+++ b/super-intel.c
@@ -2871,8 +2871,6 @@ static int load_super_imsm_all(struct supertype *st, int fd, void **sbp,
st->minor_version = 0;
st->max_devs = IMSM_MAX_DEVICES;
}
- st->loaded_container = 1;
-
return 0;
}
@@ -2923,8 +2921,6 @@ static int load_super_imsm(struct supertype *st, int fd, char *devname)
st->minor_version = 0;
st->max_devs = IMSM_MAX_DEVICES;
}
- st->loaded_container = 0;
-
return 0;
}