[patch] for compiling md.c (RAID) on 2.3.13

Helge Hafting (helge.hafting@c2i.net)
Tue, 10 Aug 1999 21:16:18 +0200


md.c from 2.3.13 didn't compile. 2.3.13 removes the WRITEA constant
from linux/fs.h and all places it was used, except from md.c
which test for this now undefined value.

This one-line patch removes the WRITEA test from md.c It seems
to work fine on my machine, and I believe it is correct as WRITEA
was removed everywhere else by the 2.3.13 patch.

diff -u md.c.2.3.13 md.c
--- md.c.2.3.13 Tue Aug 10 20:46:30 1999
+++ md.c Tue Aug 10 20:47:12 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;

-
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/