aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/transaction.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2008-06-25 16:01:31 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:04:03 -0400
commita74a4b97b61beede185b4b3ad359d7d378b0d312 (patch)
tree49ce5e7698f08e84d0ad2f65768e9f34b64d79c5 /fs/btrfs/transaction.h
parent89ce8a63d0c761fbb02089850605360f389477d8 (diff)
Btrfs: Replace the transaction work queue with kthreads
This creates one kthread for commits and one kthread for deleting old snapshots. All the work queues are removed. Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/transaction.h')
-rw-r--r--fs/btrfs/transaction.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/fs/btrfs/transaction.h b/fs/btrfs/transaction.h
index 52559b51b181..e1e5a06b65f4 100644
--- a/fs/btrfs/transaction.h
+++ b/fs/btrfs/transaction.h
@@ -82,16 +82,6 @@ int btrfs_write_and_wait_transaction(struct btrfs_trans_handle *trans,
82int btrfs_commit_tree_roots(struct btrfs_trans_handle *trans, 82int btrfs_commit_tree_roots(struct btrfs_trans_handle *trans,
83 struct btrfs_root *root); 83 struct btrfs_root *root);
84 84
85#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,18)
86void btrfs_transaction_cleaner(void *p);
87#else
88void btrfs_transaction_cleaner(struct work_struct *work);
89#endif
90
91void btrfs_transaction_flush_work(struct btrfs_root *root);
92void btrfs_transaction_queue_work(struct btrfs_root *root, int delay);
93void btrfs_init_transaction_sys(void);
94void btrfs_exit_transaction_sys(void);
95int btrfs_add_dead_root(struct btrfs_root *root, struct btrfs_root *latest, 85int btrfs_add_dead_root(struct btrfs_root *root, struct btrfs_root *latest,
96 struct list_head *dead_list); 86 struct list_head *dead_list);
97int btrfs_defrag_dirty_roots(struct btrfs_fs_info *info); 87int btrfs_defrag_dirty_roots(struct btrfs_fs_info *info);