mm: add bdi_set_max_ratio_no_scale() function
authorStefan Roesch <shr@devkernel.io>
Sat, 19 Nov 2022 00:52:10 +0000 (16:52 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:59:06 +0000 (15:59 -0800)
commit4e230b406eda9bdf7f8a71e2cc3df18a824abcb0
tree35055985254bc337391e97826886e7eb3ae0ab25
parent9c832a8d571784c998d0f9f5df480c62f7f3064c
mm: add bdi_set_max_ratio_no_scale() function

This introduces bdi_set_max_ratio_no_scale(). It uses the max
granularity for the ratio. This function by the new sysfs knob
max_ratio_fine.

Link: https://lkml.kernel.org/r/20221119005215.3052436-16-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>
include/linux/backing-dev.h
mm/page-writeback.c