diff options
author | Chris Mason <chris.mason@oracle.com> | 2008-06-25 16:01:31 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:04:03 -0400 |
commit | a74a4b97b61beede185b4b3ad359d7d378b0d312 (patch) | |
tree | 49ce5e7698f08e84d0ad2f65768e9f34b64d79c5 /fs/btrfs/transaction.h | |
parent | 89ce8a63d0c761fbb02089850605360f389477d8 (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.h | 10 |
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, | |||
82 | int btrfs_commit_tree_roots(struct btrfs_trans_handle *trans, | 82 | int 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) | ||
86 | void btrfs_transaction_cleaner(void *p); | ||
87 | #else | ||
88 | void btrfs_transaction_cleaner(struct work_struct *work); | ||
89 | #endif | ||
90 | |||
91 | void btrfs_transaction_flush_work(struct btrfs_root *root); | ||
92 | void btrfs_transaction_queue_work(struct btrfs_root *root, int delay); | ||
93 | void btrfs_init_transaction_sys(void); | ||
94 | void btrfs_exit_transaction_sys(void); | ||
95 | int btrfs_add_dead_root(struct btrfs_root *root, struct btrfs_root *latest, | 85 | int btrfs_add_dead_root(struct btrfs_root *root, struct btrfs_root *latest, |
96 | struct list_head *dead_list); | 86 | struct list_head *dead_list); |
97 | int btrfs_defrag_dirty_roots(struct btrfs_fs_info *info); | 87 | int btrfs_defrag_dirty_roots(struct btrfs_fs_info *info); |