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] [day] [month] [year] [list]
Message-ID: <20250422114803.GD3659@twin.jikos.cz>
Date: Tue, 22 Apr 2025 13:48:03 +0200
From: David Sterba <dsterba@...e.cz>
To: Yangtao Li <frank.li@...o.com>
Cc: clm@...com, josef@...icpanda.com, dsterba@...e.com,
	linux-btrfs@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] btrfs: remove BTRFS_REF_LAST from btrfs_ref_type

On Thu, Apr 17, 2025 at 08:26:49AM -0600, Yangtao Li wrote:
> Commit b28b1f0ce44c ("btrfs: delayed-ref: Introduce better documented
> delayed ref structures") introduced BTRFS_REF_LAST, which can be used
> for sanity checking.
> 
> In btrfs_ref_type() there was an assertion
> 
> ASSERT(ref->type == BTRFS_REF_DATA || ref->type == BTRFS_REF_METADATA);
> 
> to validate the value. 
> 
> And there is currently no enum or switch to use the upper limit,
> so let's remove it.
> 
> Signed-off-by: Yangtao Li <frank.li@...o.com>

Added to for-next, thanks.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ