From owner-freebsd-hackers Tue Sep 11 8:22:20 2001 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 0EB5C37B401 for ; Tue, 11 Sep 2001 08:22:18 -0700 (PDT) Received: from opal (cs.binghamton.edu [128.226.123.101]) by bingnet2.cc.binghamton.edu (8.11.4/8.11.4) with ESMTP id f8BFMGn11515 for ; Tue, 11 Sep 2001 11:22:16 -0400 (EDT) Date: Tue, 11 Sep 2001 11:22:14 -0400 (EDT) From: Zhihui Zhang X-Sender: zzhang@opal To: freebsd-hackers@freebsd.org Subject: why use vfs_clean_pages()? 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 routine vfs_clean_pages() is only called by bdwrite() to tell the VM that the buffer pages are "clean" so that VFS will write them when it sees fit. However, pages belonging to buffers are wired down, which means they are not on any paging queues. So even without vfs_clean_pages(), the pageout daemon will not write those pages. There is therefore no need for the call to vfs_clean_pages(). Please correct me if I am wrong. I am really confused here. Thanks, -Zhihui To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message