*BSD News Article 19760


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!agate!howland.reston.ans.net!usc!acsc.com!acsc.com!jerry
From: jerry@acsc.com (Jerry Chen)
Newsgroups: comp.os.386bsd.development
Subject: a question about the mapsearch() in ufs
Date: 20 Aug 1993 03:40:56 GMT
Organization: Advanced Computing Systems Company
Lines: 8
Distribution: world
Message-ID: <251h48$1cn@acsc.com>
NNTP-Posting-Host: cpuserver.acsc.com

I am reading the source code of the ufs in netBSD0.8.  Here is a question:

mapsearch() first scans from cg_blksfree(cgp)[n] to the end of
cg_blksfree(cgp)[] then from cg_blksfree(cgp)[0] to cg_blksfree(cgp)[n].
That is, cg_blksfree(cgp)[n] is scanned twice.  Why is this?  Or am I
miss-understanding the code?  Thanks in advance for the advice.

Jerry