mm: call __wb_calc_thresh instead of wb_calc_thresh in wb_over_bg_thresh
authorKemeng Shi <shikemeng@huaweicloud.com>
Thu, 25 Apr 2024 13:17:23 +0000 (21:17 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 6 May 2024 00:53:52 +0000 (17:53 -0700)
commit3b3e412e5f4800f3423f7eea6713254d990fe22d
tree2f81f1e68ece2aae09a6e51af14e2916ecd343ef
parentfabd2e42bc71d78d1e9dcd5af453d1ab86cc2a7e
mm: call __wb_calc_thresh instead of wb_calc_thresh in wb_over_bg_thresh

Call __wb_calc_thresh to calculate wb bg_thresh of gdtc in
wb_over_bg_thresh to remove unnecessary wrap in wb_calc_thresh.

Link: https://lkml.kernel.org/r/20240425131724.36778-4-shikemeng@huaweicloud.com
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Howard Cochran <hcochran@kernelspring.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Miklos Szeredi <mszeredi@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page-writeback.c