diff options
author | obrien <obrien@FreeBSD.org> | 2000-08-26 04:51:39 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2000-08-26 04:51:39 +0000 |
commit | dba23c4faf4c3e30366c2e68324b0abe4add7ef4 (patch) | |
tree | f7e4deab16dd20fdef286bbb024722e54f5eef3e /sys/vm | |
parent | aabc443d9cccb75ad2e667e7c0f610056494b504 (diff) | |
download | FreeBSD-src-dba23c4faf4c3e30366c2e68324b0abe4add7ef4.zip FreeBSD-src-dba23c4faf4c3e30366c2e68324b0abe4add7ef4.tar.gz |
Make the arguments match the functionality of the functions.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_object.h | 10 | ||||
-rw-r--r-- | sys/vm/vm_page.h | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/vm/vm_object.h b/sys/vm/vm_object.h index 881cffe..73b4d9d 100644 --- a/sys/vm/vm_object.h +++ b/sys/vm/vm_object.h @@ -172,25 +172,25 @@ extern vm_object_t kmem_object; #ifdef _KERNEL static __inline void -vm_object_set_flag(vm_object_t object, u_int bits) +vm_object_set_flag(vm_object_t object, u_short bits) { atomic_set_short(&object->flags, bits); } static __inline void -vm_object_clear_flag(vm_object_t object, u_int bits) +vm_object_clear_flag(vm_object_t object, u_short bits) { atomic_clear_short(&object->flags, bits); } static __inline void -vm_object_pip_add(vm_object_t object, int i) +vm_object_pip_add(vm_object_t object, short i) { atomic_add_short(&object->paging_in_progress, i); } static __inline void -vm_object_pip_subtract(vm_object_t object, int i) +vm_object_pip_subtract(vm_object_t object, short i) { atomic_subtract_short(&object->paging_in_progress, i); } @@ -206,7 +206,7 @@ vm_object_pip_wakeup(vm_object_t object) } static __inline void -vm_object_pip_wakeupn(vm_object_t object, int i) +vm_object_pip_wakeupn(vm_object_t object, short i) { if (i) atomic_subtract_short(&object->paging_in_progress, i); diff --git a/sys/vm/vm_page.h b/sys/vm/vm_page.h index 4903ea6..cf58985 100644 --- a/sys/vm/vm_page.h +++ b/sys/vm/vm_page.h @@ -307,13 +307,13 @@ extern long first_page; /* first physical page number */ */ static __inline void -vm_page_flag_set(vm_page_t m, unsigned int bits) +vm_page_flag_set(vm_page_t m, unsigned short bits) { atomic_set_short(&(m)->flags, bits); } static __inline void -vm_page_flag_clear(vm_page_t m, unsigned int bits) +vm_page_flag_clear(vm_page_t m, unsigned short bits) { atomic_clear_short(&(m)->flags, bits); } |