From d2bae332d63485cc6d3913e8b6f51af46d4fbaec Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 12 Feb 2004 22:42:11 +0000 Subject: 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. --- sys/vm/swap_pager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/vm') diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 8de9c40ea1ed2..6fbed93f115eb 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); -- cgit v1.3