mm: add knob /sys/class/bdi/<bdi>/max_bytes
authorStefan Roesch <shr@devkernel.io>
Sat, 19 Nov 2022 00:52:03 +0000 (16:52 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:59:04 +0000 (15:59 -0800)
commitc56e049a5e401a177c7c9b39a3bcc973ff5cec0b
treeb7cffffc02de6eba8280a57fbe9fec107fad1244
parent1bf27e98d26d1e62166a456ef17460be085cbe0b
mm: add knob /sys/class/bdi/<bdi>/max_bytes

This adds the new knob max_bytes to specify a dirty memory limit for the
corresponding bdi. The specified bytes value is converted to a ratio.

Link: https://lkml.kernel.org/r/20221119005215.3052436-9-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>
mm/backing-dev.c