diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 6af1211d4ee9..e2a5cc0d4a14 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -1825,6 +1825,9 @@ struct btrfs_fs_info { | |||
1825 | spinlock_t reada_lock; | 1825 | spinlock_t reada_lock; |
1826 | struct radix_tree_root reada_tree; | 1826 | struct radix_tree_root reada_tree; |
1827 | 1827 | ||
1828 | /* readahead works cnt */ | ||
1829 | atomic_t reada_works_cnt; | ||
1830 | |||
1828 | /* Extent buffer radix tree */ | 1831 | /* Extent buffer radix tree */ |
1829 | spinlock_t buffer_lock; | 1832 | spinlock_t buffer_lock; |
1830 | struct radix_tree_root buffer_radix; | 1833 | struct radix_tree_root buffer_radix; |
@@ -4563,8 +4566,8 @@ struct reada_control *btrfs_reada_add(struct btrfs_root *root, | |||
4563 | struct btrfs_key *start, struct btrfs_key *end); | 4566 | struct btrfs_key *start, struct btrfs_key *end); |
4564 | int btrfs_reada_wait(void *handle); | 4567 | int btrfs_reada_wait(void *handle); |
4565 | void btrfs_reada_detach(void *handle); | 4568 | void btrfs_reada_detach(void *handle); |
4566 | int btree_readahead_hook(struct btrfs_root *root, struct extent_buffer *eb, | 4569 | int btree_readahead_hook(struct btrfs_fs_info *fs_info, |
4567 | u64 start, int err); | 4570 | struct extent_buffer *eb, u64 start, int err); |
4568 | 4571 | ||
4569 | static inline int is_fstree(u64 rootid) | 4572 | static inline int is_fstree(u64 rootid) |
4570 | { | 4573 | { |