mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-23 00:00:02 +03:00
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:
parent
cc98a16776
commit
b44629a3db
@ -71,7 +71,7 @@ void run_shrinkers(gfp_t gfp_mask, bool allocation_failed)
|
|||||||
si_meminfo(&info);
|
si_meminfo(&info);
|
||||||
|
|
||||||
/* Aim for 6% of physical RAM free without anything in swap */
|
/* 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;
|
+ info.totalswap - info.freeswap;
|
||||||
if (want_shrink <= 0)
|
if (want_shrink <= 0)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user