]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Remove loaded_container
authorNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:58:06 +0000 (20:58 +1100)
committerNeilBrown <neilb@suse.de>
Mon, 22 Nov 2010 09:58:06 +0000 (20:58 +1100)
This field is now only set, never used.

So remove it.

Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.h
super-ddf.c
super-intel.c

diff --git a/mdadm.h b/mdadm.h
index 13e1df9446e5b8d4699d3f2a60f435bba870bad9..9d5e1c0c28ff611bf647d43a36b2aebd9145ac05 100644 (file)
--- 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;
index a97e05dea0c191b6ac31a1945d1a23789f5df38b..98c9d58b4b486c17a1ac15406768357d28c08cba 100644 (file)
@@ -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;
 }
 
index 4176b745ba603f0c19c41f17cddff05179b2e429..58d0fa74393913fb22b073a44d5f900536aad8f6 100644 (file)
@@ -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;
 }