diff options
author | Stefan Roesch | 2022-11-18 16:52:08 -0800 |
---|---|---|
committer | Andrew Morton | 2022-11-30 15:59:05 -0800 |
commit | 9c84819bd64ec15cb15d041c45ebe4725e9d4f3b (patch) | |
tree | 11b40453094f17dcc2da3ec6608aae2e340c2929 /sound | |
parent | 803c98050569850be5fd51a2025c67622de887d9 (diff) |
mm: add /sys/class/bdi/<bdi>/min_bytes knob
bdi has two existing knobs to limit the amount of dirty memory:
min_ratio and max_ratio. However the granularity of the knobs is limited
and often it is more convenient to specify limits in terms of bytes.
This change adds the min_bytes knob.
It does not store the min_bytes value, instead it converts the max_bytes
value to a ratio. The value is therefore more an approximation than an
absolute value.
It also maintains the sum over all the bdi min_ratio values stored in
the variable bdi_min_ratio.
Link: https://lkml.kernel.org/r/20221119005215.3052436-14-shr@devkernel.io
Signed-off-by: Stefan Roesch <shr@devkernel.io>
Cc: Chris Mason <clm@meta.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions