patch-1.3.45 linux/fs/isofs/file.c

Next file: linux/fs/minix/bitmap.c
Previous file: linux/fs/filesystems.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.44/linux/fs/isofs/file.c linux/fs/isofs/file.c
@@ -184,7 +184,7 @@
 			--blocks;
 			*bhb = getblk(inode->i_dev,isofs_bmap(inode, block++), ISOFS_BUFFER_SIZE(inode));
 			uptodate = 1;
-			if (*bhb && !(*bhb)->b_uptodate) {
+			if (*bhb && !buffer_uptodate(*bhb)) {
 			        uptodate = 0;
 			        bhreq[bhrequest++] = *bhb;
 			      };
@@ -207,7 +207,7 @@
 		do{ /* Finish off all I/O that has actually completed */
 		  if (*bhe) {/* test for valid buffer */
 		    wait_on_buffer(*bhe);
-		    if (!(*bhe)->b_uptodate) {
+		    if (!buffer_uptodate(*bhe)) {
 		      brelse(*bhe);
 		      if (++bhe == &buflist[NBUF])
 			bhe = buflist;
@@ -239,7 +239,7 @@
 		  offset = 0;
 		  if (++bhe == &buflist[NBUF])
 		    bhe = buflist;
-		} while( bhe != bhb && (*bhe == 0 || !(*bhe)->b_lock) && 
+		} while( bhe != bhb && (*bhe == 0 || !buffer_locked(*bhe)) && 
 			(left > 0));
 	} while (left > 0);
 

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