|
 2.6.5
 fs
 bio.c
diff -Nru a/fs/bio.c b/fs/bio.c
--- a/fs/bio.c Sat Apr 3 19:38:44 2004
+++ b/fs/bio.c Sat Apr 3 19:38:44 2004
@@ -701,11 +701,12 @@
{
struct bio_pair *bp = container_of(bi, struct bio_pair, bio1);
- if (bi->bi_size)
- return 1;
if (err)
bp->error = err;
+ if (bi->bi_size)
+ return 1;
+
bio_pair_release(bp);
return 0;
}
@@ -714,10 +715,11 @@
{
struct bio_pair *bp = container_of(bi, struct bio_pair, bio2);
- if (bi->bi_size)
- return 1;
if (err)
bp->error = err;
+
+ if (bi->bi_size)
+ return 1;
bio_pair_release(bp);
return 0;
|