Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2001 11:22:14 -0400 (EDT)
From:      Zhihui Zhang <zzhang@cs.binghamton.edu>
To:        freebsd-hackers@freebsd.org
Subject:   why use vfs_clean_pages()?
Message-ID:  <Pine.SOL.4.21.0109111110480.11817-100000@opal>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.21.0109111110480.11817-100000>