diff options
| author | Neil Brown <neilb@cse.unsw.edu.au> | 2002-06-18 04:16:49 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-06-18 04:16:49 -0700 |
| commit | 932db78f92b35676e1ff4ab90a1c046cbb940294 (patch) | |
| tree | 49de61f59275e99142c03e1fcb706161c6b1ee00 /include/linux/raid | |
| parent | 8892097cf216b110819a427a9bc639c2b7437eb9 (diff) | |
[PATCH] md 12 of 22 - Remove "data" from dev_mapping and tidy up
The mapping from minor number to mddev structure allows for a
'data' that is never used. This patch removes that and explicitly
inlines some inline functions that become trivial.
mddev_map also becomes completely local to md.c
Diffstat (limited to 'include/linux/raid')
| -rw-r--r-- | include/linux/raid/md.h | 2 | ||||
| -rw-r--r-- | include/linux/raid/md_k.h | 18 |
2 files changed, 0 insertions, 20 deletions
diff --git a/include/linux/raid/md.h b/include/linux/raid/md.h index c5516ee0c732..5d450aaf13d1 100644 --- a/include/linux/raid/md.h +++ b/include/linux/raid/md.h @@ -63,8 +63,6 @@ extern int md_size[MAX_MD_DEVS]; extern struct hd_struct md_hd_struct[MAX_MD_DEVS]; -extern void add_mddev_mapping (mddev_t *mddev, kdev_t dev, void *data); -extern void del_mddev_mapping (mddev_t *mddev, kdev_t dev); extern char * partition_name (kdev_t dev); extern inline char * bdev_partition_name (struct block_device *bdev) { diff --git a/include/linux/raid/md_k.h b/include/linux/raid/md_k.h index 69466cd714e7..d29630ebec43 100644 --- a/include/linux/raid/md_k.h +++ b/include/linux/raid/md_k.h @@ -65,24 +65,6 @@ typedef struct mdk_rdev_s mdk_rdev_t; #define MAX_MD_DEVS (1<<MINORBITS) /* Max number of md dev */ /* - * Maps a kdev to an mddev/subdev. How 'data' is handled is up to - * the personality. (eg. HSM uses this to identify individual LVs) - */ -typedef struct dev_mapping_s { - mddev_t *mddev; - void *data; -} dev_mapping_t; - -extern dev_mapping_t mddev_map [MAX_MD_DEVS]; - -static inline mddev_t * kdev_to_mddev (kdev_t dev) -{ - if (major(dev) != MD_MAJOR) - BUG(); - return mddev_map[minor(dev)].mddev; -} - -/* * options passed in raidrun: */ |
