patch-1.3.45 linux/drivers/scsi/scsi.h
Next file: linux/drivers/sound/Makefile
Previous file: linux/drivers/net/tulip.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Mon Nov 27 09:47:00 1995
- Orig file:
v1.3.44/linux/drivers/scsi/scsi.h
- Orig date:
Mon Nov 13 12:36:45 1995
diff -u --recursive --new-file v1.3.44/linux/drivers/scsi/scsi.h linux/drivers/scsi/scsi.h
@@ -472,7 +472,7 @@
req->nr_sectors -= bh->b_size >> 9;
req->sector += bh->b_size >> 9;
bh->b_reqnext = NULL;
- bh->b_uptodate = uptodate;
+ mark_buffer_uptodate(bh, uptodate);
unlock_buffer(bh);
sectors -= bh->b_size >> 9;
if ((bh = req->bh) != NULL) {
@@ -521,7 +521,7 @@
if (MAJOR(CURRENT->rq_dev) != MAJOR_NR) \
panic(DEVICE_NAME ": request list destroyed");\
if (CURRENT->bh) { \
- if (!CURRENT->bh->b_lock) \
+ if (!buffer_locked(CURRENT->bh)) \
panic(DEVICE_NAME ": block not locked"); \
}
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this