/openbmc/linux/fs/btrfs/ |
H A D | file-item.h | diff 97e3823933108cfc648bb08d5ad36251b6588164 Sun Nov 13 18:26:32 CST 2022 Qu Wenruo <wqu@suse.com> btrfs: introduce a bitmap based csum range search function
Although we have an existing function, btrfs_lookup_csums_range(), to find all data checksums for a range, it's based on a btrfs_ordered_sum list.
For the incoming RAID56 data checksum verification at RMW time, we don't want to waste time by allocating temporary memory.
So this patch will introduce a new helper, btrfs_lookup_csums_bitmap(). It will use bitmap based result, which will be a perfect fit for later RAID56 usage.
Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|
H A D | file-item.c | diff 97e3823933108cfc648bb08d5ad36251b6588164 Sun Nov 13 18:26:32 CST 2022 Qu Wenruo <wqu@suse.com> btrfs: introduce a bitmap based csum range search function
Although we have an existing function, btrfs_lookup_csums_range(), to find all data checksums for a range, it's based on a btrfs_ordered_sum list.
For the incoming RAID56 data checksum verification at RMW time, we don't want to waste time by allocating temporary memory.
So this patch will introduce a new helper, btrfs_lookup_csums_bitmap(). It will use bitmap based result, which will be a perfect fit for later RAID56 usage.
Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|
H A D | relocation.c | diff 97e3823933108cfc648bb08d5ad36251b6588164 Sun Nov 13 18:26:32 CST 2022 Qu Wenruo <wqu@suse.com> btrfs: introduce a bitmap based csum range search function
Although we have an existing function, btrfs_lookup_csums_range(), to find all data checksums for a range, it's based on a btrfs_ordered_sum list.
For the incoming RAID56 data checksum verification at RMW time, we don't want to waste time by allocating temporary memory.
So this patch will introduce a new helper, btrfs_lookup_csums_bitmap(). It will use bitmap based result, which will be a perfect fit for later RAID56 usage.
Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|
H A D | scrub.c | diff 97e3823933108cfc648bb08d5ad36251b6588164 Sun Nov 13 18:26:32 CST 2022 Qu Wenruo <wqu@suse.com> btrfs: introduce a bitmap based csum range search function
Although we have an existing function, btrfs_lookup_csums_range(), to find all data checksums for a range, it's based on a btrfs_ordered_sum list.
For the incoming RAID56 data checksum verification at RMW time, we don't want to waste time by allocating temporary memory.
So this patch will introduce a new helper, btrfs_lookup_csums_bitmap(). It will use bitmap based result, which will be a perfect fit for later RAID56 usage.
Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|
H A D | tree-log.c | diff 97e3823933108cfc648bb08d5ad36251b6588164 Sun Nov 13 18:26:32 CST 2022 Qu Wenruo <wqu@suse.com> btrfs: introduce a bitmap based csum range search function
Although we have an existing function, btrfs_lookup_csums_range(), to find all data checksums for a range, it's based on a btrfs_ordered_sum list.
For the incoming RAID56 data checksum verification at RMW time, we don't want to waste time by allocating temporary memory.
So this patch will introduce a new helper, btrfs_lookup_csums_bitmap(). It will use bitmap based result, which will be a perfect fit for later RAID56 usage.
Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|
H A D | inode.c | diff 97e3823933108cfc648bb08d5ad36251b6588164 Sun Nov 13 18:26:32 CST 2022 Qu Wenruo <wqu@suse.com> btrfs: introduce a bitmap based csum range search function
Although we have an existing function, btrfs_lookup_csums_range(), to find all data checksums for a range, it's based on a btrfs_ordered_sum list.
For the incoming RAID56 data checksum verification at RMW time, we don't want to waste time by allocating temporary memory.
So this patch will introduce a new helper, btrfs_lookup_csums_bitmap(). It will use bitmap based result, which will be a perfect fit for later RAID56 usage.
Signed-off-by: Qu Wenruo <wqu@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
|