X-Git-Url: https://bbs.cooldavid.org/git/?a=blobdiff_plain;f=block%2Fblk-ioc.c;h=3c7a339fe3813483155f31b05ea5aa5cd3224a36;hb=9ed05ad3c0629f434b18d20c51162f9bbb4f5d31;hp=d22c4c55c40689c23b7d275fbb76af17c0b23efa;hpb=20406f9b67e6fde4fff4639225c7a0e5ea6eaa9b;p=net-next-2.6.git diff --git a/block/blk-ioc.c b/block/blk-ioc.c index d22c4c55c40..3c7a339fe38 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) } EXPORT_SYMBOL(get_io_context); -void copy_io_context(struct io_context **pdst, struct io_context **psrc) -{ - struct io_context *src = *psrc; - struct io_context *dst = *pdst; - - if (src) { - BUG_ON(atomic_long_read(&src->refcount) == 0); - atomic_long_inc(&src->refcount); - put_io_context(dst); - *pdst = src; - } -} -EXPORT_SYMBOL(copy_io_context); - static int __init blk_ioc_init(void) { iocontext_cachep = kmem_cache_create("blkdev_ioc",