file-item.c (c71dd88007bdc8ba62e99439d93050b0778f101a) | file-item.c (51d470aeaa3a4ac5bdf98743ac1d32008e8dafa4) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#include <linux/bio.h> 7#include <linux/slab.h> 8#include <linux/pagemap.h> --- 399 unchanged lines hidden (view full) --- 408 kfree(sums); 409 } 410 list_splice_tail(&tmplist, list); 411 412 btrfs_free_path(path); 413 return ret; 414} 415 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#include <linux/bio.h> 7#include <linux/slab.h> 8#include <linux/pagemap.h> --- 399 unchanged lines hidden (view full) --- 408 kfree(sums); 409 } 410 list_splice_tail(&tmplist, list); 411 412 btrfs_free_path(path); 413 return ret; 414} 415 |
416/* 417 * btrfs_csum_one_bio - Calculates checksums of the data contained inside a bio 418 * @inode: Owner of the data inside the bio 419 * @bio: Contains the data to be checksummed 420 * @file_start: offset in file this bio begins to describe 421 * @contig: Boolean. If true/1 means all bio vecs in this bio are 422 * contiguous and they begin at @file_start in the file. False/0 423 * means this bio can contains potentially discontigous bio vecs 424 * so the logical offset of each should be calculated separately. 425 */ |
|
416blk_status_t btrfs_csum_one_bio(struct inode *inode, struct bio *bio, 417 u64 file_start, int contig) 418{ 419 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); 420 struct btrfs_ordered_sum *sums; 421 struct btrfs_ordered_extent *ordered = NULL; 422 char *data; 423 struct bvec_iter iter; --- 568 unchanged lines hidden --- | 426blk_status_t btrfs_csum_one_bio(struct inode *inode, struct bio *bio, 427 u64 file_start, int contig) 428{ 429 struct btrfs_fs_info *fs_info = btrfs_sb(inode->i_sb); 430 struct btrfs_ordered_sum *sums; 431 struct btrfs_ordered_extent *ordered = NULL; 432 char *data; 433 struct bvec_iter iter; --- 568 unchanged lines hidden --- |