mm: add bdi_set_max_bytes() function
authorStefan Roesch <shr@devkernel.io>
Sat, 19 Nov 2022 00:52:02 +0000 (16:52 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:59:04 +0000 (15:59 -0800)
commit1bf27e98d26d1e62166a456ef17460be085cbe0b
tree3234f844db72d37499676681018b3ee62430b91a
parentefc3e6ad53ea14225b434fddca261c9a1c56c707
mm: add bdi_set_max_bytes() function

This introduces the bdi_set_max_bytes() function. The max_bytes function
does not store the max_bytes value. Instead it converts the max_bytes
value into the corresponding ratio value.

Link: https://lkml.kernel.org/r/20221119005215.3052436-8-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