aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/disk-io.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r--fs/btrfs/disk-io.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h
index 1c0af7c56c21..b391335864b1 100644
--- a/fs/btrfs/disk-io.h
+++ b/fs/btrfs/disk-io.h
@@ -2,29 +2,30 @@
2#define __DISKIO__ 2#define __DISKIO__
3#include "list.h" 3#include "list.h"
4 4
5struct tree_buffer { 5struct btrfs_buffer {
6 u64 blocknr; 6 u64 blocknr;
7 int count; 7 int count;
8 union { 8 union {
9 struct node node; 9 struct btrfs_node node;
10 struct leaf leaf; 10 struct btrfs_leaf leaf;
11 }; 11 };
12 struct list_head dirty; 12 struct list_head dirty;
13 struct list_head cache; 13 struct list_head cache;
14}; 14};
15 15
16struct tree_buffer *read_tree_block(struct ctree_root *root, u64 blocknr); 16struct btrfs_buffer *read_tree_block(struct btrfs_root *root, u64 blocknr);
17struct tree_buffer *find_tree_block(struct ctree_root *root, u64 blocknr); 17struct btrfs_buffer *find_tree_block(struct btrfs_root *root, u64 blocknr);
18int write_tree_block(struct ctree_root *root, struct tree_buffer *buf); 18int write_tree_block(struct btrfs_root *root, struct btrfs_buffer *buf);
19int dirty_tree_block(struct ctree_root *root, struct tree_buffer *buf); 19int dirty_tree_block(struct btrfs_root *root, struct btrfs_buffer *buf);
20int clean_tree_block(struct ctree_root *root, struct tree_buffer *buf); 20int clean_tree_block(struct btrfs_root *root, struct btrfs_buffer *buf);
21int commit_transaction(struct ctree_root *root, struct ctree_super_block *s); 21int btrfs_commit_transaction(struct btrfs_root *root,
22struct ctree_root *open_ctree(char *filename, struct ctree_super_block *s); 22 struct btrfs_super_block *s);
23int close_ctree(struct ctree_root *root, struct ctree_super_block *s); 23struct btrfs_root *open_ctree(char *filename, struct btrfs_super_block *s);
24void tree_block_release(struct ctree_root *root, struct tree_buffer *buf); 24int close_ctree(struct btrfs_root *root, struct btrfs_super_block *s);
25int write_ctree_super(struct ctree_root *root, struct ctree_super_block *s); 25void btrfs_block_release(struct btrfs_root *root, struct btrfs_buffer *buf);
26int write_ctree_super(struct btrfs_root *root, struct btrfs_super_block *s);
26int mkfs(int fd); 27int mkfs(int fd);
27 28
28#define CTREE_SUPER_INFO_OFFSET(bs) (16 * (bs)) 29#define BTRFS_SUPER_INFO_OFFSET(bs) (16 * (bs))
29 30
30#endif 31#endif