diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-10-25 09:41:36 +0000 |
---|---|---|
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) | |
download | lwn-9afab8820bb8b55af669b199597d6716e04d1ba8.tar.gz lwn-9afab8820bb8b55af669b199597d6716e04d1ba8.zip |
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 { struct list_head root_extent_list; struct btrfs_work work; -}; + struct completion completion; + struct btrfs_work flush_work; + struct list_head work_list; +}; /* * calculates the total size you need to allocate for an ordered sum |