summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2010-06-08 17:54:28 +0000
committerkib <kib@FreeBSD.org>2010-06-08 17:54:28 +0000
commit317abde3725dd5587befd19326dbb86efdaed6fd (patch)
treece721d22f60a1202a7cf7daeb70ebb7c20101794 /lib
parent9a18b596b8a1d9c7a937bd5ed83be888524ab341 (diff)
downloadFreeBSD-src-317abde3725dd5587befd19326dbb86efdaed6fd.zip
FreeBSD-src-317abde3725dd5587befd19326dbb86efdaed6fd.tar.gz
Reorganize the code in bdwrite() which handles move of dirtiness
from the buffer pages to buffer. Combine the code to set buffer dirty range (previously in vfs_setdirty()) and to clean the pages (vfs_clean_pages()) into new function vfs_clean_pages_dirty_buf(). Now the vm object lock is acquired only once. Drain the VPO_BUSY bit of the buffer pages before setting valid and clean bits in vfs_clean_pages_dirty_buf() with new helper vfs_drain_busy_pages(). pmap_clear_modify() asserts that page is not busy. In vfs_busy_pages(), move the wait for draining of VPO_BUSY before the dirtyness handling, to follow the structure of vfs_clean_pages_dirty_buf(). Reported and tested by: pho Suggested and reviewed by: alc MFC after: 2 weeks
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud