summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-04-24 23:10:56 +0200
committerAlasdair G Kergon <agk@redhat.com>2008-04-25 14:27:00 +0200
commit4fdfe401e9d7e30029972d568c667234c0c1d828 (patch)
treee9e8f45ceccda2e73008da8f404302b056a059b3 /drivers/md
parentdm table: drop void suspend_targets return (diff)
downloadlinux-4fdfe401e9d7e30029972d568c667234c0c1d828.tar.xz
linux-4fdfe401e9d7e30029972d568c667234c0c1d828.zip
dm table: remove unused dm_create_error_table
dm_create_error_table() was added in kernel 2.6.18 and never used... Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-table.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
index fc261c81d736..51be53344214 100644
--- a/drivers/md/dm-table.c
+++ b/drivers/md/dm-table.c
@@ -245,44 +245,6 @@ int dm_table_create(struct dm_table **result, int mode,
return 0;
}
-int dm_create_error_table(struct dm_table **result, struct mapped_device *md)
-{
- struct dm_table *t;
- sector_t dev_size = 1;
- int r;
-
- /*
- * Find current size of device.
- * Default to 1 sector if inactive.
- */
- t = dm_get_table(md);
- if (t) {
- dev_size = dm_table_get_size(t);
- dm_table_put(t);
- }
-
- r = dm_table_create(&t, FMODE_READ, 1, md);
- if (r)
- return r;
-
- r = dm_table_add_target(t, "error", 0, dev_size, NULL);
- if (r)
- goto out;
-
- r = dm_table_complete(t);
- if (r)
- goto out;
-
- *result = t;
-
-out:
- if (r)
- dm_table_put(t);
-
- return r;
-}
-EXPORT_SYMBOL_GPL(dm_create_error_table);
-
static void free_devices(struct list_head *devices)
{
struct list_head *tmp, *next;