Date: 09 Jul 1999 11:24:09 +0300 From: Ville-Pertti Keinonen <will@iki.fi> To: zzhang@cs.binghamton.edu (Zhihui Zhang) Cc: hackers@freebsd.org Subject: Re: Wrong comment in VM code? Message-ID: <86iu7ujknq.fsf@not.demophon.com> In-Reply-To: zzhang@cs.binghamton.edu's message of "9 Jul 1999 04:37:52 %2B0300" References: <Pine.GSO.3.96.990708212050.1554B-100000@sol.cs.binghamton.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
zzhang@cs.binghamton.edu (Zhihui Zhang) writes: > At the beginning of the file vm_object.c, we have the following comment: > > The only items within the object structure which are modified after time > of creation are: > > reference count locked by object's lock > pager routine locked by object's lock > > But at the end of vnode_pager_setsize(), we modify the size field. So at > least three items can be modified after creation. Am I right? The comment is wrong (it's probably supposed to mean something other than it seems to), the only field in a vm_object that *isn't* modified after creation is 'id'. The comment is also wrong in that there are no vm_object locks in FreeBSD (they've been ripped out). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86iu7ujknq.fsf>