Re: [PATCH] 2.3.14: bug-fix for raw IO error recovery

Andrea Arcangeli (andrea@suse.de)
Thu, 26 Aug 1999 14:28:12 +0200 (CEST)


On Wed, 25 Aug 1999, Stephen C. Tweedie wrote:

>map_user_kiobuf(). And yes, I should add this (I'll do it once I'm
>back in .uk, along with a couple of other tidy-ups), but I don't want

Currently I am using this check the bigmem patch:

diff -urN 2.3.15/fs/buffer.c 2.3.15-bigmem/fs/buffer.c
--- 2.3.15/fs/buffer.c Thu Aug 26 02:55:02 1999
+++ 2.3.15-bigmem/fs/buffer.c Thu Aug 26 14:23:05 1999
@@ -1822,6 +1822,11 @@
for (pageind = 0; pageind < iobuf->nr_pages; pageind++) {
page = iobuf->pagelist[pageind];
map = iobuf->maplist[pageind];
+ if (map && PageBIGMEM(map))
+ {
+ err = -EIO;
+ goto error;
+ }

while (length > 0) {
blocknr = b[bufind++];

PageBIGMEM is a defined as zero if CONFIG_BIGMEM is not set (so the whole
branch should be optimized away at compile time when not necessary).

Andrea

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