diff options
author | Arne Jansen <sensille@gmx.net> | 2011-05-23 08:30:00 -0400 |
---|---|---|
committer | Arne Jansen <sensille@gmx.net> | 2011-10-02 02:48:30 -0400 |
commit | 90519d66abbccc251d14719ac76f191f70826e40 (patch) | |
tree | 93cad519db9f4f0c97abd89d405ea1e0fec306a7 /fs/btrfs/ctree.h | |
parent | ab0fff03055d2d1b01a7581badeba18db9c4f55c (diff) |
btrfs: state information for readahead
Add state information for readahead to btrfs_fs_info and btrfs_device
Changes v2:
- don't wait in radix_trees
- add own set of workers for readahead
Reviewed-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Arne Jansen <sensille@gmx.net>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 03912c5c6f49..f71fd24cc152 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1036,6 +1036,7 @@ struct btrfs_fs_info { | |||
1036 | struct btrfs_workers endio_freespace_worker; | 1036 | struct btrfs_workers endio_freespace_worker; |
1037 | struct btrfs_workers submit_workers; | 1037 | struct btrfs_workers submit_workers; |
1038 | struct btrfs_workers caching_workers; | 1038 | struct btrfs_workers caching_workers; |
1039 | struct btrfs_workers readahead_workers; | ||
1039 | 1040 | ||
1040 | /* | 1041 | /* |
1041 | * fixup workers take dirty pages that didn't properly go through | 1042 | * fixup workers take dirty pages that didn't properly go through |
@@ -1119,6 +1120,10 @@ struct btrfs_fs_info { | |||
1119 | u64 fs_state; | 1120 | u64 fs_state; |
1120 | 1121 | ||
1121 | struct btrfs_delayed_root *delayed_root; | 1122 | struct btrfs_delayed_root *delayed_root; |
1123 | |||
1124 | /* readahead tree */ | ||
1125 | spinlock_t reada_lock; | ||
1126 | struct radix_tree_root reada_tree; | ||
1122 | }; | 1127 | }; |
1123 | 1128 | ||
1124 | /* | 1129 | /* |