aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-04-16 11:14:51 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:01 -0400
commit44b8bd7edda4f63de180d0f7325c9fb704b3806b (patch)
tree6090e8b70d6a726caed7d4662c311779d1927cf7 /fs/btrfs/ctree.h
parent321aecc65671ae8136bd2ca6879b56f0221f8ac8 (diff)
Btrfs: Create a work queue for bio writes
This allows checksumming to happen in parallel among many cpus, and keeps us from bogging down pdflush with the checksumming code. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index a22edcf49174..ff15b8513f90 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -514,8 +514,11 @@ struct btrfs_fs_info {
514 struct list_head hashers; 514 struct list_head hashers;
515 struct list_head dead_roots; 515 struct list_head dead_roots;
516 struct list_head end_io_work_list; 516 struct list_head end_io_work_list;
517 struct list_head async_submit_work_list;
517 struct work_struct end_io_work; 518 struct work_struct end_io_work;
519 struct work_struct async_submit_work;
518 spinlock_t end_io_work_lock; 520 spinlock_t end_io_work_lock;
521 spinlock_t async_submit_work_lock;
519 522
520#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18) 523#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
521 struct work_struct trans_work; 524 struct work_struct trans_work;