summaryrefslogtreecommitdiff
path: root/include/linux/raid/md.h
diff options
context:
space:
mode:
authorNeil Brown <neilb@cse.unsw.edu.au>2002-07-18 19:07:59 -0700
committerTrond Myklebust <trond.myklebust@fys.uio.no>2002-07-18 19:07:59 -0700
commit2a9400e9457cb5bc2bb54c987f38b6f96fa5430e (patch)
treea50f9dda9625e870ad0ec18065dc2927983028a7 /include/linux/raid/md.h
parent70e96bef8aacd89af3601f63d5d1236071d7d901 (diff)
[PATCH] MD - Rdev list cleanups.
Rdev list cleanups. An "rdev" can be on three different lists. - the list of all rdevs - the list of pending rdevs - the list of rdevs for a given mddev The first list is now only used to list "unused" devices in /proc/mdstat, and only pending rdevs can be unused, so this list isn't necessary. An rdev cannot be both pending and in an mddev, so we know rdev will only be on one list at at time. This patch discards the all_raid_disks list, and changes the pending list to use "same_set" in the rdev. It also changes /proc/mdstat to iterate through pending devices, rather than through all devices. So now an rdev is only on one list, either the pending list or the list of rdevs for a given mddev. This means that ITERATE_RDEV_GENERIC doesn't need to be told which field, to walk down: there is ony one.
Diffstat (limited to 'include/linux/raid/md.h')
0 files changed, 0 insertions, 0 deletions