aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-16 11:15:20 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commite015640f9c4fa2417dcc3bbbb3b2b61ad4059ab0 (patch)
tree2ba41617e428f60ff970abc8a862ab77980b4a20 /fs/btrfs/ctree.h
parent44b8bd7edda4f63de180d0f7325c9fb704b3806b (diff)
Btrfs: Write bio checksumming outside the FS mutex
This significantly improves streaming write performance by allowing concurrency in the data checksumming. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index ff15b8513f90..b56ae1950658 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -1515,7 +1515,9 @@ int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans,
1515 u64 bytenr, int mod); 1515 u64 bytenr, int mod);
1516int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans, 1516int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans,
1517 struct btrfs_root *root, struct inode *inode, 1517 struct btrfs_root *root, struct inode *inode,
1518 struct bio *bio); 1518 struct bio *bio, char *sums);
1519int btrfs_csum_one_bio(struct btrfs_root *root,
1520 struct bio *bio, char **sums_ret);
1519struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans, 1521struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans,
1520 struct btrfs_root *root, 1522 struct btrfs_root *root,
1521 struct btrfs_path *path, 1523 struct btrfs_path *path,