Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

block: remove unused copy_io_context()

Reported-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>

-15
-14
block/blk-ioc.c
··· 153 153 } 154 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 156 static int __init blk_ioc_init(void) 171 157 { 172 158 iocontext_cachep = kmem_cache_create("blkdev_ioc",
-1
include/linux/iocontext.h
··· 76 76 void exit_io_context(struct task_struct *task); 77 77 struct io_context *get_io_context(gfp_t gfp_flags, int node); 78 78 struct io_context *alloc_io_context(gfp_t gfp_flags, int node); 79 - void copy_io_context(struct io_context **pdst, struct io_context **psrc); 80 79 #else 81 80 static inline void exit_io_context(struct task_struct *task) 82 81 {