patch-1.3.45 linux/include/linux/blk.h

Next file: linux/include/linux/cdk.h
Previous file: linux/include/asm-sparc/socket.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.44/linux/include/linux/blk.h linux/include/linux/blk.h
@@ -325,7 +325,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"); \
 	}
 
@@ -362,7 +362,7 @@
 	if ((bh = req->bh) != NULL) {
 		req->bh = bh->b_reqnext;
 		bh->b_reqnext = NULL;
-		bh->b_uptodate = uptodate;		
+		mark_buffer_uptodate(bh, uptodate);
 		unlock_buffer(bh);
 		if ((bh = req->bh) != NULL) {
 			req->current_nr_sectors = bh->b_size >> 9;

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