summaryrefslogtreecommitdiff
path: root/disk-io.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-10-15 16:25:14 -0400
committerDavid Woodhouse <dwmw2@hera.kernel.org>2007-10-15 16:25:14 -0400
commit38f79f9077fce76eabc5566319f33b8e800fb96d (patch)
tree2b7e92dc61209b55d5f119e1ddbf472cf32528d1 /disk-io.h
parent08c66b7738e17ae2879d767a59ebec56c7a189b2 (diff)
Switch to byte granular allocations
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,