diff options
author | Jens Axboe <jaxboe@fusionio.com> | 2010-11-11 12:37:54 (GMT) |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2010-11-11 12:40:11 (GMT) |
commit | cedb4a7d9f6aedb0dce94d6285b69dcb3c10fa05 (patch) | |
tree | 49a6b255a727421658cb917321ad3e29c8bd9fc0 | |
parent | 17a9e7bbae178d1326e4631ab6350a272349c99d (diff) | |
download | linux-cedb4a7d9f6aedb0dce94d6285b69dcb3c10fa05.tar.xz |
block: remove unused copy_io_context()
Reported-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
-rw-r--r-- | block/blk-ioc.c | 14 | ||||
-rw-r--r-- | include/linux/iocontext.h | 1 |
2 files changed, 0 insertions, 15 deletions
diff --git a/block/blk-ioc.c b/block/blk-ioc.c index d22c4c5..3c7a339 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", diff --git a/include/linux/iocontext.h b/include/linux/iocontext.h index 3e70b21..b2eee89 100644 --- a/include/linux/iocontext.h +++ b/include/linux/iocontext.h @@ -76,7 +76,6 @@ int put_io_context(struct io_context *ioc); void exit_io_context(struct task_struct *task); struct io_context *get_io_context(gfp_t gfp_flags, int node); struct io_context *alloc_io_context(gfp_t gfp_flags, int node); -void copy_io_context(struct io_context **pdst, struct io_context **psrc); #else static inline void exit_io_context(struct task_struct *task) { |