On Mon, 24 Oct 2022 12:05:59 -0700 Stefan Roesch <shr@xxxxxxxxxxxx> wrote: > This adds a function to return the specified value for min_bytes. It > converts the stored min_ratio of the bdi to the corresponding bytes > value. This is an approximation as it is based on the value that is > returned by global_dirty_limits(), which can change. The returned > value can be different than the value when the min_bytes value was set. > > ... > > --- a/include/linux/backing-dev.h > +++ b/include/linux/backing-dev.h > @@ -105,6 +105,7 @@ static inline unsigned long wb_stat_error(void) > /* BDI ratio is expressed as part per 1000 for finer granularity. */ > #define BDI_RATIO_SCALE 10 > > +unsigned long long bdi_get_min_bytes(struct backing_dev_info *bdi); u64? > +EXPORT_SYMBOL_GPL(bdi_get_min_bytes); Needed?