/* given a list of ordered sums record them in the inode. This happens at IO completion time based on sums calculated at bio submission time.  */
static noinline int add_pending_csums(struct btrfs_trans_handle *trans, struct inode *inode, u64 file_offset, struct list_head *list)
/* given a list of ordered sums record them in the inode. This happens at IO completion time based on sums calculated at bio submission time.  */
static noinline int add_pending_csums(struct btrfs_trans_handle *trans, struct inode *inode, u64 file_offset, struct list_head *list)
{
	struct btrfs_ordered_sum *sum;
	btrfs_set_trans_block_group(trans, inode);
	list_for_each_entry(sum, list, list) {
		btrfs_csum_file_blocks(trans,
		       BTRFS_I(inode)->root->fs_info->csum_root, sum);
	}
	return 0;
}