bcachefs-tools: Fix typo in 872cd43

6% of physical RAM is info.totalram >> 4 not info.totalram << 4.

Signed-off-by: Chris Webb <chris@arachsys.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Chris Webb 2023-12-10 07:28:31 +00:00 committed by Kent Overstreet
parent cc98a16776
commit b44629a3db

View File

@ -71,7 +71,7 @@ void run_shrinkers(gfp_t gfp_mask, bool allocation_failed)
si_meminfo(&info);
/* Aim for 6% of physical RAM free without anything in swap */
want_shrink = (info.totalram << 4) - info.freeram
want_shrink = (info.totalram >> 4) - info.freeram
+ info.totalswap - info.freeswap;
if (want_shrink <= 0)
return;