diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-10-25 11:41:36 +0200 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-11 19:31:38 +0100 |
commit | 9afab8820bb8b55af669b199597d6716e04d1ba8 (patch) | |
tree | cdd61b6cefaa048dc140835cb08b2ee40d67f37d /fs/btrfs/ordered-data.h | |
parent | Btrfs: make ordered operations be handled by multi-task (diff) | |
download | linux-9afab8820bb8b55af669b199597d6716e04d1ba8.tar.xz linux-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 |