diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:15:53 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:56 -0400 |
commit | db94535db75e67fab12ccbb7f5ee548e33fed891 (patch) | |
tree | 1ad7dfc82b003294a94ee87d7329b24b902b369f /fs/btrfs/disk-io.h | |
parent | 1a5bc167f6707542b79a55452075525620ed43f5 (diff) |
Btrfs: Allow tree blocks larger than the page size
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 | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 70d9413c599f..fd4db5f810cf 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h | |||
@@ -21,10 +21,11 @@ | |||
21 | 21 | ||
22 | #define BTRFS_SUPER_INFO_OFFSET (16 * 1024) | 22 | #define BTRFS_SUPER_INFO_OFFSET (16 * 1024) |
23 | 23 | ||
24 | struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 blocknr); | 24 | struct extent_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, |
25 | int readahead_tree_block(struct btrfs_root *root, u64 blocknr); | 25 | u32 blocksize); |
26 | int readahead_tree_block(struct btrfs_root *root, u64 bytenr, u32 blocksize); | ||
26 | struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, | 27 | struct extent_buffer *btrfs_find_create_tree_block(struct btrfs_root *root, |
27 | u64 blocknr); | 28 | u64 bytenr, u32 blocksize); |
28 | int clean_tree_block(struct btrfs_trans_handle *trans, | 29 | int clean_tree_block(struct btrfs_trans_handle *trans, |
29 | struct btrfs_root *root, struct extent_buffer *buf); | 30 | struct btrfs_root *root, struct extent_buffer *buf); |
30 | struct btrfs_root *open_ctree(struct super_block *sb); | 31 | struct btrfs_root *open_ctree(struct super_block *sb); |
@@ -32,7 +33,7 @@ int close_ctree(struct btrfs_root *root); | |||
32 | int write_ctree_super(struct btrfs_trans_handle *trans, | 33 | int write_ctree_super(struct btrfs_trans_handle *trans, |
33 | struct btrfs_root *root); | 34 | struct btrfs_root *root); |
34 | struct extent_buffer *btrfs_find_tree_block(struct btrfs_root *root, | 35 | struct extent_buffer *btrfs_find_tree_block(struct btrfs_root *root, |
35 | u64 blocknr); | 36 | u64 bytenr, u32 blocksize); |
36 | struct btrfs_root *btrfs_read_fs_root(struct btrfs_fs_info *fs_info, | 37 | struct btrfs_root *btrfs_read_fs_root(struct btrfs_fs_info *fs_info, |
37 | struct btrfs_key *location, | 38 | struct btrfs_key *location, |
38 | const char *name, int namelen); | 39 | const char *name, int namelen); |