Re: [PATCH] btrfs: change block group reclaim_mark to bool

David Sterba <[email protected]>
Newsgroups org.kernel.vger.linux-btrfs
Message-ID <[email protected]>
On Wed, Jun 24, 2026 at 12:02:27PM +0800, Sun YangKai wrote:
> The reclaim_mark field in struct btrfs_block_group was a u64 that was
> incremented when marking block groups for reclaim during sweeping, but
> the actual counter value was never used - only the zero/non-zero state
> mattered for determining if a block group needed reclaim.
> 
> Convert it to a bool to properly reflect its usage and reduce memory
> footprint by 8 bytes. Update assignments to use true/false instead of
> increment and zero.
> 
> Signed-off-by: Sun YangKai <[email protected]>

Added to for-next, with updated comment. Thanks.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.