2001-11-30 01:58:17

by Alex Valys

[permalink] [raw]
Subject: PATCH: Replaces bio_size macro in drivers/block/rd.c

Found an unresolved symbol in rd.c while compiling 2.5.1-pre4.


--- drivers/block/rd.c Thu Nov 29 20:50:17 2001
+++ drivers/block/rd.c Thu Nov 29 20:51:30 2001
@@ -239,7 +239,7 @@

index = sbh->bi_sector >> (PAGE_CACHE_SHIFT - 9);
offset = (sbh->bi_sector << 9) & ~PAGE_CACHE_MASK;
- size = bio_size(sbh);
+ size = sbh->bi_size;

do {
int count;
@@ -323,7 +323,7 @@
goto fail;

offset = sbh->bi_sector << 9;
- len = bio_size(sbh);
+ len = sbh->bi_size;

if ((offset + len) > rd_length[minor])
goto fail;