Re: [RFC PATCH v3 10/14] mm: add bdi_get_min_bytes() function.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?



[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux