From b4050e8494dfef8b7a3aa9449d11b1f4c7c0201e Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 31 Jul 2001 04:09:52 +0000 Subject: Oops. Last commit to vm_object.c should have got these files too. Remove the use of atomic ops to manipulate vm_object and vm_page flags. Giant is required here, so they are superfluous. Discussed with: dillon --- sys/vm/vm_page.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'sys/vm/vm_page.c') diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 39e8603..b3eb945 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -324,16 +324,14 @@ void vm_page_flag_set(vm_page_t m, unsigned short bits) { GIANT_REQUIRED; - atomic_set_short(&(m)->flags, bits); - /* m->flags |= bits; */ + m->flags |= bits; } void vm_page_flag_clear(vm_page_t m, unsigned short bits) { GIANT_REQUIRED; - atomic_clear_short(&(m)->flags, bits); - /* m->flags &= ~bits; */ + m->flags &= ~bits; } void @@ -384,14 +382,14 @@ void vm_page_io_start(vm_page_t m) { GIANT_REQUIRED; - atomic_add_char(&(m)->busy, 1); + m->busy++; } void vm_page_io_finish(vm_page_t m) { GIANT_REQUIRED; - atomic_subtract_char(&(m)->busy, 1); + m->busy--; if (m->busy == 0) vm_page_flash(m); } -- cgit v1.1