diff options
author | davem <davem> | 2001-12-11 22:22:20 +0000 |
---|---|---|
committer | davem <davem> | 2001-12-11 22:22:20 +0000 |
commit | f2c57933330632ce8ce1c3dee473db6a3eb52f84 (patch) | |
tree | 1fc6cc46b184a52bcc05b6ebf66b0456e2ab0509 | |
parent | 9c0186c554d17fa45087a0dd1163695bb922c652 (diff) | |
download | netdev-vger-cvs-f2c57933330632ce8ce1c3dee473db6a3eb52f84.tar.gz |
Remove forced compile failure
and replace with hack to make no writes actually
go to disk. You can run with this thing until
page/block memory starts getting reclaimed.
Basically every write request just gets marks
UPTODATE and no I/O is actually initiated.
-rw-r--r-- | drivers/block/ll_rw_blk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/block/ll_rw_blk.c b/drivers/block/ll_rw_blk.c index 942d9f7a1..735408292 100644 --- a/drivers/block/ll_rw_blk.c +++ b/drivers/block/ll_rw_blk.c @@ -981,8 +981,10 @@ static int __make_request(request_queue_t *q, struct bio *bio) cur_nr_sectors = bio_iovec(bio)->bv_len >> 9; rw = bio_data_dir(bio); -#error THIS KERNEL EATS DISKS FOR LUNCH -#if 1 +#if 1 /* XXX Makes no writes actually go to disk. + * XXX Use this on kernels you do not trust such + * XXX as current 2.5.1-preX :-) -DaveM + */ if (rw & WRITE) { set_bit(BIO_UPTODATE, &bio->bi_flags); bio->bi_end_io(bio, nr_sectors); |