summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2010-05-25 09:48:28 -0400
committerChris Mason <chris.mason@oracle.com>2010-05-25 10:34:58 -0400
commiteaf25d933e64c2bf3c79b83e8820404f36fdfc52 (patch)
tree649dc862fcc9a243bdc925db34da618b25a275fc /fs/btrfs/extent_io.h
parented3b3d314cd2f16fac42676839854a68cab2e22b (diff)
downloadop-kernel-dev-eaf25d933e64c2bf3c79b83e8820404f36fdfc52.zip
op-kernel-dev-eaf25d933e64c2bf3c79b83e8820404f36fdfc52.tar.gz
Btrfs: use async helpers for DIO write checksumming
The async helper threads offload crc work onto all the CPUs, and make streaming writes much faster. This changes the O_DIRECT write code to use them. The only small complication was that we need to pass in the logical offset in the file for each bio, because we can't find it in the bio's pages. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 86f10dc..86c7b34 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -49,7 +49,7 @@ struct extent_state;
typedef int (extent_submit_bio_hook_t)(struct inode *inode, int rw,
struct bio *bio, int mirror_num,
- unsigned long bio_flags);
+ unsigned long bio_flags, u64 bio_offset);
struct extent_io_ops {
int (*fill_delalloc)(struct inode *inode, struct page *locked_page,
u64 start, u64 end, int *page_started,
OpenPOWER on IntegriCloud