diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-05-01 08:53:32 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-05-01 08:53:32 -0400 |
commit | 090d18753c7fb73f7d846c3a89a50cd35136d144 (patch) | |
tree | e36965065fd68633c06cbe4b8312e5afe49997f4 /fs/btrfs/disk-io.h | |
parent | 31f3c99b73483f7b738a886c552050cbd6128ff3 (diff) |
Btrfs: directory readahead
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r-- | fs/btrfs/disk-io.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 444ebb0141ae..1ee7d2a55b5b 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h | |||
@@ -5,6 +5,11 @@ | |||
5 | 5 | ||
6 | #define BTRFS_SUPER_INFO_OFFSET (16 * 1024) | 6 | #define BTRFS_SUPER_INFO_OFFSET (16 * 1024) |
7 | 7 | ||
8 | enum btrfs_bh_state_bits { | ||
9 | BH_Checked = BH_PrivateStart, | ||
10 | }; | ||
11 | BUFFER_FNS(Checked, checked); | ||
12 | |||
8 | static inline struct btrfs_node *btrfs_buffer_node(struct buffer_head *bh) | 13 | static inline struct btrfs_node *btrfs_buffer_node(struct buffer_head *bh) |
9 | { | 14 | { |
10 | return (struct btrfs_node *)bh->b_data; | 15 | return (struct btrfs_node *)bh->b_data; |
@@ -21,6 +26,7 @@ static inline struct btrfs_header *btrfs_buffer_header(struct buffer_head *bh) | |||
21 | } | 26 | } |
22 | 27 | ||
23 | struct buffer_head *read_tree_block(struct btrfs_root *root, u64 blocknr); | 28 | struct buffer_head *read_tree_block(struct btrfs_root *root, u64 blocknr); |
29 | int readahead_tree_block(struct btrfs_root *root, u64 blocknr); | ||
24 | struct buffer_head *btrfs_find_create_tree_block(struct btrfs_root *root, | 30 | struct buffer_head *btrfs_find_create_tree_block(struct btrfs_root *root, |
25 | u64 blocknr); | 31 | u64 blocknr); |
26 | int write_tree_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, | 32 | int write_tree_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, |