From owner-freebsd-hackers Thu Mar 7 9:30:22 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from bingnet2.cc.binghamton.edu (bingnet2.cc.binghamton.edu [128.226.1.18]) by hub.freebsd.org (Postfix) with ESMTP id CEBBF37B400 for ; Thu, 7 Mar 2002 09:29:49 -0800 (PST) Received: from onyx (onyx.cs.binghamton.edu [128.226.140.171]) by bingnet2.cc.binghamton.edu (8.11.6/8.11.6) with ESMTP id g27HTdw24970; Thu, 7 Mar 2002 12:29:39 -0500 (EST) Date: Thu, 7 Mar 2002 12:27:53 -0500 (EST) From: Zhihui Zhang X-Sender: zzhang@onyx To: Alfred Perlstein Cc: freebsd-hackers@freebsd.org Subject: Re: A question of VM page ownership In-Reply-To: <20020307164424.GF26621@elvis.mu.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The mapping between data objects (one-to-one or one-to-many) seem to be the most troublesome stuff to deal with when introducing new data structures. But if there is never the need to lookup an object from a page, then maybe we can use a linkage structure like this: struct vm_page_linkage { TAILQ_ENTRY(vm_page_linkage) pageq; struct vm_page * page; } -Zhihui On Thu, 7 Mar 2002, Alfred Perlstein wrote: > * Zhihui Zhang [020307 08:28] wrote: > > > > Is there any fundamental reason why a page can not be owned by more than > > one VM object? If that was the case, the bogus page stuff in vfs_bio.c > > could be made cleaner IMHO. > > There is only enough linkage in the vm page to support it being associated > with one object. see src/sys/vm/vm_page.h > > -Alfred Perlstein [alfred@freebsd.org] > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message