Commit cedb4a7d9f6aedb0dce94d6285b69dcb3c10fa05

Authored by Jens Axboe
1 parent 17a9e7bbae

block: remove unused copy_io_context()

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

Showing 2 changed files with 0 additions and 15 deletions Side-by-side Diff

... ... @@ -153,20 +153,6 @@
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",
include/linux/iocontext.h
... ... @@ -76,7 +76,6 @@
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 {