lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ddx62wlkv6hjirl5kf3szghllvgfkmrhp226bj3lxklskdyk6i@k3spugopk5rl>
Date: Wed, 11 Feb 2026 11:39:30 +0100
From: Jan Kara <jack@...e.cz>
To: Kundan Kumar <kundan.kumar@...sung.com>
Cc: jaegeuk@...nel.org, chao@...nel.org, agruenba@...hat.com, 
	trondmy@...nel.org, anna@...nel.org, hch@....de, brauner@...nel.org, jack@...e.cz, 
	viro@...iv.linux.org.uk, djwong@...nel.org, pankaj.raghav@...ux.dev, 
	linux-f2fs-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org, gfs2@...ts.linux.dev, 
	linux-nfs@...r.kernel.org, gost.dev@...sung.com, anuj20.g@...sung.com, vishak.g@...sung.com, 
	joshi.k@...sung.com, mcgrof@...nel.org
Subject: Re: [PATCH 1/4] writeback: prep helpers for dirty-limit and
 writeback accounting

On Wed 11-02-26 12:30:54, Kundan Kumar wrote:
> Add helper APIs needed by filesystems to avoid poking into writeback
> internals.
> 
> Suggested-by: Christoph Hellwig <hch@....de>
> Signed-off-by: Kundan Kumar <kundan.kumar@...sung.com>
> Signed-off-by: Anuj Gupta <anuj20.g@...sung.com>

Looks sensible. Feel free to add:

Reviewed-by: Jan Kara <jack@...e.cz>

								Honza

> ---
>  include/linux/backing-dev.h | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/include/linux/backing-dev.h b/include/linux/backing-dev.h
> index 0c8342747cab..4165ad3ddf00 100644
> --- a/include/linux/backing-dev.h
> +++ b/include/linux/backing-dev.h
> @@ -78,6 +78,17 @@ static inline s64 wb_stat_sum(struct bdi_writeback *wb, enum wb_stat_item item)
>  
>  extern void wb_writeout_inc(struct bdi_writeback *wb);
>  
> +static inline int bdi_wb_dirty_exceeded(struct backing_dev_info *bdi)
> +{
> +	return bdi->wb.dirty_exceeded;
> +}
> +
> +static inline void bdi_wb_stat_mod(struct backing_dev_info *bdi,
> +				   enum wb_stat_item item, s64 amount)
> +{
> +	wb_stat_mod(&bdi->wb, item, amount);
> +}
> +
>  /*
>   * maximal error of a stat counter.
>   */
> -- 
> 2.25.1
> 
-- 
Jan Kara <jack@...e.com>
SUSE Labs, CR

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ