diff options
author | Miao Xie <miaox@cn.fujitsu.com> | 2012-10-25 13:31:03 +0400 |
---|---|---|
committer | Josef Bacik <jbacik@fusionio.com> | 2012-12-11 22:31:37 +0400 |
commit | 25287e0a16c0ad068aa89ab01aea6c699b31ec12 (patch) | |
tree | 3badf12a84d2e2e437fc4b432ea41c197a9cbc99 /fs/btrfs/ordered-data.h | |
parent | 8ccf6f19b67f7e0921063cc309f4672a6afcb528 (diff) | |
download | linux-25287e0a16c0ad068aa89ab01aea6c699b31ec12.tar.xz |
Btrfs: make ordered operations be handled by multi-task
The process of the ordered operations is similar to the delalloc inode flush, so
we 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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/ordered-data.h b/fs/btrfs/ordered-data.h index dd27a0b46a37..e8dcec635112 100644 --- a/fs/btrfs/ordered-data.h +++ b/fs/btrfs/ordered-data.h @@ -186,7 +186,7 @@ struct btrfs_ordered_extent *btrfs_lookup_ordered_range(struct inode *inode, int btrfs_ordered_update_i_size(struct inode *inode, u64 offset, struct btrfs_ordered_extent *ordered); int btrfs_find_ordered_sum(struct inode *inode, u64 offset, u64 disk_bytenr, u32 *sum); -void btrfs_run_ordered_operations(struct btrfs_root *root, int wait); +int btrfs_run_ordered_operations(struct btrfs_root *root, int wait); void btrfs_add_ordered_operation(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode); |