]> err.no Git - linux-2.6/commit
[PATCH] dm table: store md
authorMike Anderson <andmike@us.ibm.com>
Mon, 27 Mar 2006 09:17:54 +0000 (01:17 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 27 Mar 2006 16:44:59 +0000 (08:44 -0800)
commit1134e5ae79bab61c05657ca35a6297cf87202e35
tree16d5e9c722fbe17dc343c65b85628c8e6ee36199
parent9ade92a9a5b0a3a10efa6551b8c67a9277bf0438
[PATCH] dm table: store md

Store an up-pointer to the owning struct mapped_device in every table when it
is created.

Access it with:
  struct mapped_device *dm_table_get_md(struct dm_table *t)

Tables linked to md must be destroyed before the md itself.

Signed-off-by: Mike Anderson <andmike@us.ibm.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-ioctl.c
drivers/md/dm-table.c
drivers/md/dm.c
drivers/md/dm.h