]> Gentwo Git Trees - linux/.git/commit
btrfs: raid56: move sector_ptr::uptodate into a dedicated bitmap
authorQu Wenruo <wqu@suse.com>
Thu, 9 Oct 2025 04:40:00 +0000 (15:10 +1030)
committerDavid Sterba <dsterba@suse.com>
Mon, 24 Nov 2025 21:42:22 +0000 (22:42 +0100)
commit1810350b04ef38b375c64304e142de96d90404e1
treedf03d46c4cd776b4be42fd916e9df32d09bbf3c9
parent17d552ab9b2be6c2c28169fcf913114f63a71a22
btrfs: raid56: move sector_ptr::uptodate into a dedicated bitmap

The uptodate boolean member can be extracted into a bitmap, which will
save us some space (1 bit in a byte vs 8 bits in a byte).

Furthermore we do not need to record the uptodate bitmap for bio
sectors, as if bio_sectors[].paddr is valid it means there is a bio and
will be uptodate.

Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c
fs/btrfs/raid56.h