diff options
author | phk <phk@FreeBSD.org> | 2004-02-12 22:42:11 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-02-12 22:42:11 +0000 |
commit | 124977fbb6c505edf20e1c4b862194c84d39f1eb (patch) | |
tree | b700329baa11c7dbd187df0ad4e8480d842ec8fa /sys/vm | |
parent | e929b29355b485b504986972ea051a80ca2254e7 (diff) | |
download | FreeBSD-src-124977fbb6c505edf20e1c4b862194c84d39f1eb.zip FreeBSD-src-124977fbb6c505edf20e1c4b862194c84d39f1eb.tar.gz |
Remove the absolute count g_access_abs() function since experience has
shown that it is not useful.
Rename the relative count g_access_rel() function to g_access(), only
the name has changed.
Change all g_access_rel() calls in our CVS tree to call g_access() instead.
Add an #ifndef BURN_BRIDGES #define of g_access_rel() for source
code compatibility.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/swap_pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 8de9c40..6fbed93 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -2449,7 +2449,7 @@ swapgeom_close_ev(void *arg, int flags) struct g_consumer *cp; cp = arg; - g_access_rel(cp, -1, -1, 0); + g_access(cp, -1, -1, 0); g_detach(cp); g_destroy_consumer(cp); } @@ -2509,7 +2509,7 @@ swapongeom_ev(void *arg, int flags) * savecore(8) wants to write to our swapdev so we cannot * set an exclusive count :-( */ - error = g_access_rel(cp, 1, 1, 0); + error = g_access(cp, 1, 1, 0); if (error) { g_detach(cp); g_destroy_consumer(cp); |