diff options
author | alc <alc@FreeBSD.org> | 2012-06-20 23:25:47 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2012-06-20 23:25:47 +0000 |
commit | 4d96d753feedcc57803c82b8b8fc08698181c284 (patch) | |
tree | 8cce276cbe947357e75bb0da8227bb940d18613d /sys/vm/vm_page.c | |
parent | d7c61f6b4f6318284356f1acdd7a55082473ff63 (diff) | |
download | FreeBSD-src-4d96d753feedcc57803c82b8b8fc08698181c284.zip FreeBSD-src-4d96d753feedcc57803c82b8b8fc08698181c284.tar.gz |
Selectively inline vm_page_dirty().
Diffstat (limited to 'sys/vm/vm_page.c')
-rw-r--r-- | sys/vm/vm_page.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c index 5b3afe7..c1a7e40 100644 --- a/sys/vm/vm_page.c +++ b/sys/vm/vm_page.c @@ -783,7 +783,7 @@ vm_page_sleep(vm_page_t m, const char *msg) } /* - * vm_page_dirty: + * vm_page_dirty_KBI: [ internal use only ] * * Set all bits in the page's dirty field. * @@ -791,11 +791,14 @@ vm_page_sleep(vm_page_t m, const char *msg) * call is made from the machine-independent layer. * * See vm_page_clear_dirty_mask(). + * + * This function should only be called by vm_page_dirty(). */ void -vm_page_dirty(vm_page_t m) +vm_page_dirty_KBI(vm_page_t m) { + /* These assertions refer to this operation by its public name. */ KASSERT((m->flags & PG_CACHED) == 0, ("vm_page_dirty: page in cache!")); KASSERT(!VM_PAGE_IS_FREE(m), |