dm-io.c (55fa518867978e1f5fd8353098f80d125ac734d7) dm-io.c (bb799ca0202a360fa74d5f17039b9100caebdde7)
1/*
2 * Copyright (C) 2003 Sistina Software
3 * Copyright (C) 2006 Red Hat GmbH
4 *
5 * This file is released under the GPL.
6 */
7
8#include <linux/device-mapper.h>

--- 42 unchanged lines hidden (view full) ---

51 client = kmalloc(sizeof(*client), GFP_KERNEL);
52 if (!client)
53 return ERR_PTR(-ENOMEM);
54
55 client->pool = mempool_create_kmalloc_pool(ios, sizeof(struct io));
56 if (!client->pool)
57 goto bad;
58
1/*
2 * Copyright (C) 2003 Sistina Software
3 * Copyright (C) 2006 Red Hat GmbH
4 *
5 * This file is released under the GPL.
6 */
7
8#include <linux/device-mapper.h>

--- 42 unchanged lines hidden (view full) ---

51 client = kmalloc(sizeof(*client), GFP_KERNEL);
52 if (!client)
53 return ERR_PTR(-ENOMEM);
54
55 client->pool = mempool_create_kmalloc_pool(ios, sizeof(struct io));
56 if (!client->pool)
57 goto bad;
58
59 client->bios = bioset_create(16, 16);
59 client->bios = bioset_create(16, 0);
60 if (!client->bios)
61 goto bad;
62
63 return client;
64
65 bad:
66 if (client->pool)
67 mempool_destroy(client->pool);

--- 396 unchanged lines hidden ---
60 if (!client->bios)
61 goto bad;
62
63 return client;
64
65 bad:
66 if (client->pool)
67 mempool_destroy(client->pool);

--- 396 unchanged lines hidden ---