btrfs: state information for readahead
[deliverable/linux.git] / fs / btrfs / ctree.h
index 03912c5c6f498221b965baef0fafed10904677e6..f71fd24cc152d463e031fffd1d45d2a91cf65901 100644 (file)
@@ -1036,6 +1036,7 @@ struct btrfs_fs_info {
        struct btrfs_workers endio_freespace_worker;
        struct btrfs_workers submit_workers;
        struct btrfs_workers caching_workers;
+       struct btrfs_workers readahead_workers;
 
        /*
         * fixup workers take dirty pages that didn't properly go through
@@ -1119,6 +1120,10 @@ struct btrfs_fs_info {
        u64 fs_state;
 
        struct btrfs_delayed_root *delayed_root;
+
+       /* readahead tree */
+       spinlock_t reada_lock;
+       struct radix_tree_root reada_tree;
 };
 
 /*
This page took 0.023742 seconds and 5 git commands to generate.