Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 221849
b: refs/heads/master
c: cedb4a7
h: refs/heads/master
i:
  221847: 21a7861
v: v3
  • Loading branch information
Jens Axboe committed Nov 11, 2010
1 parent 07498c9 commit 06f568a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 17a9e7bbae178d1326e4631ab6350a272349c99d
refs/heads/master: cedb4a7d9f6aedb0dce94d6285b69dcb3c10fa05
14 changes: 0 additions & 14 deletions trunk/block/blk-ioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion trunk/include/linux/iocontext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 06f568a

Please sign in to comment.