diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-07-18 06:17:13 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:05 -0400 |
commit | 3edf7d33f4edb1e4a9bb0a4c0a84d95fb4d22a09 (patch) | |
tree | 8698a6dd1d0d038f1b56f79c92783518d36f2145 /fs/btrfs/ctree.h | |
parent | eb84ae039e10f1f80443d846ba1350122bbdc753 (diff) |
Btrfs: Handle data checksumming on bios that span multiple ordered extents
Data checksumming is done right before the bio is sent down the IO stack,
which means a single bio might span more than one ordered extent. In
this case, the checksumming data is split between two ordered extents.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index acbce542d291..96ab2797c09a 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1579,8 +1579,8 @@ int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans, | |||
1579 | int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans, | 1579 | int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans, |
1580 | struct btrfs_root *root, struct inode *inode, | 1580 | struct btrfs_root *root, struct inode *inode, |
1581 | struct btrfs_ordered_sum *sums); | 1581 | struct btrfs_ordered_sum *sums); |
1582 | int btrfs_csum_one_bio(struct btrfs_root *root, | 1582 | int btrfs_csum_one_bio(struct btrfs_root *root, struct inode *inode, |
1583 | struct bio *bio, struct btrfs_ordered_sum **sums_ret); | 1583 | struct bio *bio); |
1584 | struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans, | 1584 | struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans, |
1585 | struct btrfs_root *root, | 1585 | struct btrfs_root *root, |
1586 | struct btrfs_path *path, | 1586 | struct btrfs_path *path, |