fs/block_dev.c: remove #if 0'ed code
Subsystems (3)
RFC PATCH 1/1 fs/block_dev.c: remove #if 0'ed code
Commit b2e895dbd80c420bfc0937c3729b4afe073b3848 #if 0'ed this code stating:
<-- snip -->
[PATCH] revert blockdev direct io back to 2.6.19 version
Andrew Vasquez is reporting as-iosched oopses and a 65% throughput slowdown due to the recent special-casing of direct-io against blockdevs. We don't know why either of these things are occurring.
The patch minimally reverts us back to the 2.6.19 code for a 2.6.20 release.
<-- snip -->
It has since been dead code, and unless someone wants to revive it now it's time to remove it.
This patch also makes bio_release_pages() static again and removes the ki_bio_count member from struct kiocb, reverting changes that had been done for this dead code.
---
fs/bio.c | 2 fs/block_dev.c | 197 -------------------------------------------- include/linux/aio.h | 1 include/linux/bio.h | 1 4 files changed, 1 insertion(+), 200 deletions(-)
ba8404ffaa1d5a509f7e783f15dbf0d8c827fa85 diff --git a/fs/bio.c b/fs/bio.c index 242e409..3312fcc 100644
fs/bio.c +1 -1
@@ -903,7 +903,7 @@ void bio_set_pages_dirty(struct bio *bio) } } -void bio_release_pages (struct bio *bio) +static void bio_release_pages (struct bio *bio) {struct bio_vec *bvec = bio->bi_io_vec;int i;
fs/block_dev.c +0 -197
203 lines not on this page · raw message
include/linux/aio.h +0 -1
@@ -105,7 +105,6 @@ struct kiocb {wait_queue_t ki_wait;loff_t ki_pos; -atomic_t ki_bio_count;/* num bio used for this iocb */ void *private;/* State that we remember to be able to restart/retry */ unsigned short ki_opcode;
include/linux/bio.h +0 -1
@@ -326,7 +326,6 @@ extern struct bio *bio_map_kern(struct request_queue *, void *, unsigned int, gfp_t);extern void bio_set_pages_dirty (struct bio *bio);extern void bio_check_pages_dirty (struct bio *bio); -extern void bio_release_pages (struct bio *bio);extern struct bio *bio_copy_user (struct request_queue *,unsigned long ,unsigned int ,int );extern int bio_uncopy_user (struct bio *);void zero_fill_bio (struct bio *bio);
Quoted 13 lines · Adrian Bunk
Commit
b2e895dbd80c420bfc0937c3729b4afe073b3848#if 0'ed this code stating:<-- snip -->
[PATCH] revert blockdev direct io back to 2.6.19 version
Andrew Vasquez is reporting as-iosched oopses and a 65% throughput slowdown due to the recent special-casing of direct-io against blockdevs. We don't know why either of these things are occurring.
The patch minimally reverts us back to the 2.6.19 code for a 2.6.20 release.
Quoted 8 lines
<-- snip -->
It has since been dead code, and unless someone wants to revive it now it's time to remove it.
This patch also makes
bio_release_pages()static again and removes theki_bio_countmember from struct kiocb, reverting changes that had been done for this dead code.
I agree with this, if it's been sitting like that for a long time, might as well just kill it. I've merged your patch, if no one complains it'll go in during 2.6.25.
Signature · 1 line
Jens Axboe