Fix arc__shrink DTrace probe's to_free argument.

Remove the unnecessary #ifdef _KERNEL, which did not differ in the true or
false cases.  Actually set the value of to_free before using it.

MFC after:	1 week
Sponsored by:	Spectra Logic
This commit is contained in:
Will Andrews 2015-01-20 22:39:10 +00:00
parent fe20fb9fb0
commit 798cbb7523
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=277452

View File

@ -2540,13 +2540,9 @@ arc_shrink(void)
if (arc_c > arc_c_min) {
uint64_t to_free;
to_free = arc_c >> arc_shrink_shift;
DTRACE_PROBE4(arc__shrink, uint64_t, arc_c, uint64_t,
arc_c_min, uint64_t, arc_p, uint64_t, to_free);
#ifdef _KERNEL
to_free = arc_c >> arc_shrink_shift;
#else
to_free = arc_c >> arc_shrink_shift;
#endif
if (arc_c > arc_c_min + to_free)
atomic_add_64(&arc_c, -to_free);
else