lkml.org 
[lkml]   [1999]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] make MD compile under 2.3.13
Looks like WRITEA has gone away.  This quick patch just gets MD to compile
again under 2.3.13.

--
Michael A. Griffith
grif@acm.org
408-979-9302


diff -u --recursive --new-file linux-2.3.13/drivers/block/md.c linux-md-compiles/drivers/block/md.c
--- linux-2.3.13/drivers/block/md.c Mon Aug 9 10:23:09 1999
+++ linux-md-compiles/drivers/block/md.c Fri Aug 13 08:28:10 1999
@@ -740,7 +740,7 @@
if (buffer_locked(bh))
return 0;
set_bit(BH_Lock, &bh->b_state);
- if (rw == WRITE || rw == WRITEA) {
+ if (rw == WRITE) {
if (!buffer_dirty(bh)) {
bh->b_end_io(bh, test_bit(BH_Uptodate, &bh->b_state));
return 0;
diff -u --recursive --new-file linux-2.3.13/drivers/block/raid1.c linux-md-compiles/drivers/block/raid1.c
--- linux-2.3.13/drivers/block/raid1.c Tue Jun 29 09:22:08 1999
+++ linux-md-compiles/drivers/block/raid1.c Fri Aug 13 08:34:49 1999
@@ -215,15 +215,14 @@
memset (r1_bh, 0, sizeof (struct raid1_bh));

/*
- * make_request() can abort the operation when READA or WRITEA are being
+ * make_request() can abort the operation when READA is being
* used and no empty request is available.
*
* Currently, just replace the command with READ/WRITE.
*/
if (rw == READA) rw = READ;
- if (rw == WRITEA) rw = WRITE;

- if (rw == WRITE || rw == WRITEA)
+ if (rw == WRITE)
mark_buffer_clean(bh); /* Too early ? */

/*
diff -u --recursive --new-file linux-2.3.13/drivers/block/raid5.c linux-md-compiles/drivers/block/raid5.c
--- linux-2.3.13/drivers/block/raid5.c Tue Jun 29 09:22:08 1999
+++ linux-md-compiles/drivers/block/raid5.c Fri Aug 13 08:34:46 1999
@@ -1206,7 +1206,6 @@
struct stripe_head *sh;

if (rw == READA) rw = READ;
- if (rw == WRITEA) rw = WRITE;

new_sector = raid5_compute_sector(bh->b_rsector, raid_disks, data_disks,
&dd_idx, &pd_idx, raid_conf);
--
Michael A. Griffith
<grif@acm.org>
408-979-9302






-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.038 / U:0.952 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site