diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-10-15 16:25:14 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2007-10-15 16:25:14 -0400 |
commit | 38f79f9077fce76eabc5566319f33b8e800fb96d (patch) | |
tree | 2b7e92dc61209b55d5f119e1ddbf472cf32528d1 /disk-io.h | |
parent | 08c66b7738e17ae2879d767a59ebec56c7a189b2 (diff) |
Switch to byte granular allocations
Diffstat (limited to 'disk-io.h')
-rw-r--r-- | disk-io.h | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -21,8 +21,8 @@ #include "list.h" struct btrfs_buffer { - u64 blocknr; - u64 dev_blocknr; + u64 bytenr; + u64 dev_bytenr; u32 size; int count; int fd; @@ -34,8 +34,10 @@ struct btrfs_buffer { }; }; -struct btrfs_buffer *read_tree_block(struct btrfs_root *root, u64 blocknr); -struct btrfs_buffer *find_tree_block(struct btrfs_root *root, u64 blocknr); +struct btrfs_buffer *read_tree_block(struct btrfs_root *root, u64 bytenr, + u32 blocksize); +struct btrfs_buffer *find_tree_block(struct btrfs_root *root, u64 bytenr, + u32 blocksize); int write_tree_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_buffer *buf); int dirty_tree_block(struct btrfs_trans_handle *trans, struct btrfs_root *root, |