]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
btrfs: rename btrfs_csum_file_blocks() to btrfs_insert_data_csums()
authorQu Wenruo <wqu@suse.com>
Tue, 10 Feb 2026 03:24:31 +0000 (13:54 +1030)
committerDavid Sterba <dsterba@suse.com>
Tue, 7 Apr 2026 16:55:56 +0000 (18:55 +0200)
commitb943097758ffa35dba31053de927d1cbb40a1bf5
treeb5dda458d35c2c746ce37e3a3e8ccafd855e897c
parent00c865b60b0650723e1f103dc58ca3f01e7bd662
btrfs: rename btrfs_csum_file_blocks() to btrfs_insert_data_csums()

The function btrfs_csum_file_blocks() is a little confusing, unlike
btrfs_csum_one_bio(), it is not calculating the checksum of some file
blocks.

Instead it's just inserting the already calculated checksums into a given
root (can be a csum root or a log tree).

So rename it to btrfs_insert_data_csums() to reflect its behavior better.

Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file-item.c
fs/btrfs/file-item.h
fs/btrfs/inode.c
fs/btrfs/tree-log.c