diff options
Diffstat (limited to 'block/blk-ioc.c')
| -rw-r--r-- | block/blk-ioc.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/block/blk-ioc.c b/block/blk-ioc.c index d22c4c55c406..3c7a339fe381 100644 --- a/block/blk-ioc.c +++ b/block/blk-ioc.c | |||
| @@ -153,20 +153,6 @@ struct io_context *get_io_context(gfp_t gfp_flags, int node) | |||
| 153 | } | 153 | } |
| 154 | EXPORT_SYMBOL(get_io_context); | 154 | EXPORT_SYMBOL(get_io_context); |
| 155 | 155 | ||
| 156 | void copy_io_context(struct io_context **pdst, struct io_context **psrc) | ||
| 157 | { | ||
| 158 | struct io_context *src = *psrc; | ||
| 159 | struct io_context *dst = *pdst; | ||
| 160 | |||
| 161 | if (src) { | ||
| 162 | BUG_ON(atomic_long_read(&src->refcount) == 0); | ||
| 163 | atomic_long_inc(&src->refcount); | ||
| 164 | put_io_context(dst); | ||
| 165 | *pdst = src; | ||
| 166 | } | ||
| 167 | } | ||
| 168 | EXPORT_SYMBOL(copy_io_context); | ||
| 169 | |||
| 170 | static int __init blk_ioc_init(void) | 156 | static int __init blk_ioc_init(void) |
| 171 | { | 157 | { |
| 172 | iocontext_cachep = kmem_cache_create("blkdev_ioc", | 158 | iocontext_cachep = kmem_cache_create("blkdev_ioc", |
