Btrfs: use async helpers for DIO write checksumming
authorChris Mason <chris.mason@oracle.com>
Tue, 25 May 2010 13:48:28 +0000 (09:48 -0400)
committerChris Mason <chris.mason@oracle.com>
Tue, 25 May 2010 14:34:58 +0000 (10:34 -0400)
commiteaf25d933e64c2bf3c79b83e8820404f36fdfc52
tree649dc862fcc9a243bdc925db34da618b25a275fc
parented3b3d314cd2f16fac42676839854a68cab2e22b
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>
fs/btrfs/disk-io.c
fs/btrfs/disk-io.h
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h
fs/btrfs/inode.c