DInit(int abuffers)
{
/* Initialize the venus buffer system. */
- register int i, tsize;
- register struct buffer *tb;
- register char *tp;
+ int i, tsize;
+ struct buffer *tb;
+ char *tp;
Lock_Init(&afs_bufferLock);
/* Align each element of Buffers on a doubleword boundary */
* @retval NULL read failed
*/
void *
-DRead(register afs_int32 *fid, register int page)
+DRead(afs_int32 *fid, int page)
{
/* Read a page from the disk. */
- register struct buffer *tb, *tb2, **bufhead;
+ struct buffer *tb, *tb2, **bufhead;
ObtainWriteLock(&afs_bufferLock);
calls++;
}
static int
-FixupBucket(register struct buffer *ap)
+FixupBucket(struct buffer *ap)
{
- register struct buffer **lp, *tp;
- register int i;
+ struct buffer **lp, *tp;
+ int i;
/* first try to get it out of its current hash bucket, in which it might not be */
i = ap->hashIndex;
}
struct buffer *
-newslot(afs_int32 *afid, afs_int32 apage, register struct buffer *lp)
+newslot(afs_int32 *afid, afs_int32 apage, struct buffer *lp)
{
/* Find a usable buffer slot */
- register afs_int32 i;
+ afs_int32 i;
afs_int32 lt;
- register struct buffer **tbp;
+ struct buffer **tbp;
if (lp && (lp->lockers == 0)) {
lt = lp->accesstime;
DRelease(void *loc, int flag)
{
struct buffer *bp = (struct buffer *)loc;
- register int index;
+ int index;
if (!bp)
return;
}
int
-DVOffset(register void *ap)
+DVOffset(void *ap)
{
/* Return the byte within a file represented by a buffer pointer. */
- register struct buffer *bp = ap;
- register int index;
+ struct buffer *bp = ap;
+ int index;
index = ((char *)bp - BufferData) >> LOGPS;
if (index < 0 || index >= nbuffers)
}
void
-DZap(register afs_int32 *fid)
+DZap(afs_int32 *fid)
{
/* Destroy all buffers pertaining to a particular fid. */
- register struct buffer *tb;
+ struct buffer *tb;
ObtainReadLock(&afs_bufferLock);
for (tb = phTable[pHash(fid)]; tb; tb = tb->hashNext)
if (FidEq(tb->fid, fid)) {
}
int
-DFlushVolume(register afs_int32 vid)
+DFlushVolume(afs_int32 vid)
{
/* Flush all data and release all inode handles for a particular volume */
- register struct buffer *tb;
- register int code, rcode = 0;
+ struct buffer *tb;
+ int code, rcode = 0;
ObtainReadLock(&afs_bufferLock);
for (tb = phTable[vHash(vid)]; tb; tb = tb->hashNext)
if (FidVolEq(tb->fid, vid)) {
}
int
-DFlushEntry(register afs_int32 *fid)
+DFlushEntry(afs_int32 *fid)
{
/* Flush pages modified by one entry. */
- register struct buffer *tb;
+ struct buffer *tb;
int code;
ObtainReadLock(&afs_bufferLock);
DFlush(void)
{
/* Flush all the modified buffers. */
- register int i;
- register struct buffer **tbp;
+ int i;
+ struct buffer **tbp;
afs_int32 code, rcode;
rcode = 0;
}
void *
-DNew(register afs_int32 *fid, register int page)
+DNew(afs_int32 *fid, int page)
{
/* Same as read, only do *not* even try to read the page,
* since it probably doesn't exist.
*/
- register struct buffer *tb;
+ struct buffer *tb;
ObtainWriteLock(&afs_bufferLock);
if ((tb = newslot(fid, page, 0)) == 0) {
ReleaseWriteLock(&afs_bufferLock);