Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 May 2002 16:21:25 -0700 (PDT)
From:      Jake Burkholder <jake@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 11458 for review
Message-ID:  <200205172321.g4HNLPG23836@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=11458

Change 11458 by jake@jake_sparc64 on 2002/05/17 16:21:16

	Remove fsblks.

Affected files ...

... //depot/projects/sparc64/sys/boot/sparc64/boot1/boot1.c#4 edit

Differences ...

==== //depot/projects/sparc64/sys/boot/sparc64/boot1/boot1.c#4 (text+ko) ====

@@ -54,7 +54,6 @@
 static struct fs fs;
 static ino_t inomap;
 static char blkbuf[BSIZEMAX];
-static unsigned int fsblks;
 
 static uint32_t fs_off;
 
@@ -409,7 +408,6 @@
 		printf("mount: not ufs\n");
 		return (-1);
 	}
-	fsblks = fs.fs_bsize >> DEV_BSHIFT;
 	return (0);
 }
 
@@ -504,7 +502,7 @@
 		return (0);
 	if (inomap != inode) {
 		if (dskread(blkbuf, fsbtodb(&fs, ino_to_fsba(&fs, inode)),
-		    fsblks))
+		    fs.fs_bsize >> DEV_BSHIFT))
 			return (-1);
 		bcopy(blkbuf + ((inode % INOPB(&fs)) * sizeof(din)), &din,
 		    sizeof(din));
@@ -523,7 +521,7 @@
 		else {
 			if (indmap != din.di_ib[0]) {
 				if (dskread(indbuf, fsbtodb(&fs, din.di_ib[0]),
-				    fsblks))
+				    fs.fs_bsize >> DEV_BSHIFT))
 					return (-1);
 				indmap = din.di_ib[0];
 			}

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205172321.g4HNLPG23836>