summaryrefslogtreecommitdiff
path: root/disk-io.h
diff options
context:
space:
mode:
Diffstat (limited to 'disk-io.h')
-rw-r--r--disk-io.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/disk-io.h b/disk-io.h
index 6c0ba722..43744579 100644
--- a/disk-io.h
+++ b/disk-io.h
@@ -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,