diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2010-06-08 17:54:28 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2010-06-08 17:54:28 +0000 |
commit | 8d4a7be84d51767f19a1e59a31d68d19a8d7a019 (patch) | |
tree | ce721d22f60a1202a7cf7daeb70ebb7c20101794 /sys/conf/files.pc98 | |
parent | 53a908cb07b62603e7463b92a7082cc341a46f0a (diff) |
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
Notes
Notes:
svn path=/head/; revision=208920
Diffstat (limited to 'sys/conf/files.pc98')
0 files changed, 0 insertions, 0 deletions