All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vladislav Bolkhovitin <vst@vlnb.net>
To: linux-kernel@vger.kernel.org
Cc: Jens Axboe <jens.axboe@oracle.com>
Subject: [PATCH]: Remove dead copy_io_context()
Date: Thu, 25 Mar 2010 23:03:16 +0300	[thread overview]
Message-ID: <4BABC184.2070401@vlnb.net> (raw)

Since anticipatory IO scheduler was removed, copy_io_context() function
isn't used anymore, so this patch removes it.

Signed-off-by: Vladislav Bolkhovitin <vst@vlnb.net>
---
 block/blk-ioc.c           |   14 --------------
 include/linux/iocontext.h |    1 -
 2 files changed, 15 deletions(-)

diff -upkr linux-2.6.33/block/blk-ioc.c linux-2.6.33/block/blk-ioc.c
--- linux-2.6.33/block/blk-ioc.c	2010-02-24 21:52:17.000000000 +0300
+++ linux-2.6.33/block/blk-ioc.c	2010-03-25 22:49:30.000000000 +0300
@@ -152,20 +152,6 @@ struct io_context *get_io_context(gfp_t 
 }
 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 -upkr linux-2.6.33/include/linux/iocontext.h linux-2.6.33/include/linux/iocontext.h
--- linux-2.6.33/include/linux/iocontext.h	2010-02-24 21:52:17.000000000 +0300
+++ linux-2.6.33/include/linux/iocontext.h	2010-03-25 22:49:16.000000000 +0300
@@ -77,7 +77,6 @@ int put_io_context(struct io_context *io
 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)
 {

                 reply	other threads:[~2010-03-25 20:02 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BABC184.2070401@vlnb.net \
    --to=vst@vlnb.net \
    --cc=jens.axboe@oracle.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.