patch-1.3.45 linux/fs/ext2/namei.c

Next file: linux/fs/ext2/truncate.c
Previous file: linux/fs/ext2/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.44/linux/fs/ext2/namei.c linux/fs/ext2/namei.c
@@ -97,7 +97,7 @@
 			break;
 		bh = ext2_getblk (dir, block, 0, &err);
 		bh_use[block] = bh;
-		if (bh && !bh->b_uptodate)
+		if (bh && !buffer_uptodate(bh))
 			bh_read[toread++] = bh;
 	}
 
@@ -119,7 +119,7 @@
 			continue;
 		}
 		wait_on_buffer (bh);
-		if (!bh->b_uptodate) {
+		if (!buffer_uptodate(bh)) {
 			/*
 			 * read error: all bets are off
 			 */
@@ -152,7 +152,7 @@
 		else
 			bh = ext2_getblk (dir, block + NAMEI_RA_SIZE, 0, &err);
 		bh_use[block % NAMEI_RA_SIZE] = bh;
-		if (bh && !bh->b_uptodate)
+		if (bh && !buffer_uptodate(bh))
 			bh_read[toread++] = bh;
 	}
 

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