diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-07-23 21:17:15 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-07-23 21:17:15 +0000 |
commit | a465907b05115a58a5c1178300875d8dc1119cd1 (patch) | |
tree | 0102be81724a1f54a8c13019736a2b01cc0cdbfb /lib/libmemstat/memstat_uma.c | |
parent | 4eb9d677d45bfe80d30ff8ae621a5246cc58790a (diff) | |
download | FreeBSD-src-a465907b05115a58a5c1178300875d8dc1119cd1.zip FreeBSD-src-a465907b05115a58a5c1178300875d8dc1119cd1.tar.gz |
Prefix two non-static libmemstat(3) internal functions with '_' symbols, to
try and discourage use outside the library.
Remove duplicate declaration of memstat_mtl_free() from memstat_internal.h,
as it's not internal, and the memstat.h definition suffices.
Diffstat (limited to 'lib/libmemstat/memstat_uma.c')
-rw-r--r-- | lib/libmemstat/memstat_uma.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/lib/libmemstat/memstat_uma.c b/lib/libmemstat/memstat_uma.c index 740fe23..49cc73a 100644 --- a/lib/libmemstat/memstat_uma.c +++ b/lib/libmemstat/memstat_uma.c @@ -175,15 +175,10 @@ retry: if (hint_dontsearch == 0) { mtp = memstat_mtl_find(list, ALLOCATOR_UMA, uthp->uth_name); - /* - * Reset the statistics on a reused node. - */ - if (mtp != NULL) - memstat_mt_reset_stats(mtp); } else mtp = NULL; if (mtp == NULL) - mtp = memstat_mt_allocate(list, ALLOCATOR_UMA, + mtp = _memstat_mt_allocate(list, ALLOCATOR_UMA, uthp->uth_name); if (mtp == NULL) { memstat_mtl_free(list); @@ -197,7 +192,7 @@ retry: /* * Reset the statistics on a current node. */ - memstat_mt_reset_stats(mtp); + _memstat_mt_reset_stats(mtp); mtp->mt_numallocs = uthp->uth_allocs; mtp->mt_numfrees = uthp->uth_frees; |