diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-10-25 05:41:36 -0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-11 13:31:38 -0500 |
commit | 9afab8820bb8b55af669b199597d6716e04d1ba8 (patch) | |
tree | cdd61b6cefaa048dc140835cb08b2ee40d67f37d /fs/btrfs/ordered-data.h | |
parent | 25287e0a16c0ad068aa89ab01aea6c699b31ec12 (diff) |
Btrfs: make ordered extent be flushed by multi-task
Though the process of the ordered extents is a bit different with the delalloc inode
flush, but we can see it as a subset of the delalloc inode flush, so we also handle
them by flush workers.
Signed-off-by: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'fs/btrfs/ordered-data.h')
-rw-r--r-- | fs/btrfs/ordered-data.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index e8dcec635112..efc7c2930c17 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h | |||
@@ -128,8 +128,11 @@ struct btrfs_ordered_extent { | |||
128 | struct list_head root_extent_list; | 128 | struct list_head root_extent_list; |
129 | 129 | ||
130 | struct btrfs_work work; | 130 | struct btrfs_work work; |
131 | }; | ||
132 | 131 | ||
132 | struct completion completion; | ||
133 | struct btrfs_work flush_work; | ||
134 | struct list_head work_list; | ||
135 | }; | ||
133 | 136 | ||
134 | /* | 137 | /* |
135 | * calculates the total size you need to allocate for an ordered sum | 138 | * calculates the total size you need to allocate for an ordered sum |