summaryrefslogtreecommitdiff
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)
downloadlwn-e015640f9c4fa2417dcc3bbbb3b2b61ad4059ab0.tar.gz
lwn-e015640f9c4fa2417dcc3bbbb3b2b61ad4059ab0.zip
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,
u64 bytenr, int mod);
int btrfs_csum_file_blocks(struct btrfs_trans_handle *trans,
struct btrfs_root *root, struct inode *inode,
- struct bio *bio);
+ struct bio *bio, char *sums);
+int btrfs_csum_one_bio(struct btrfs_root *root,
+ struct bio *bio, char **sums_ret);
struct btrfs_csum_item *btrfs_lookup_csum(struct btrfs_trans_handle *trans,
struct btrfs_root *root,
struct btrfs_path *path,