diff options
Diffstat (limited to 'fs/btrfs/disk-io.h')
-rw-r--r-- | fs/btrfs/disk-io.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.h b/fs/btrfs/disk-io.h index 2729b757ddc1..b5dee2fae4da 100644 --- a/fs/btrfs/disk-io.h +++ b/fs/btrfs/disk-io.h | |||
@@ -1,5 +1,6 @@ | |||
1 | #ifndef __DISKIO__ | 1 | #ifndef __DISKIO__ |
2 | #define __DISKIO__ | 2 | #define __DISKIO__ |
3 | #include "list.h" | ||
3 | 4 | ||
4 | struct tree_buffer { | 5 | struct tree_buffer { |
5 | u64 blocknr; | 6 | u64 blocknr; |
@@ -8,11 +9,16 @@ struct tree_buffer { | |||
8 | struct node node; | 9 | struct node node; |
9 | struct leaf leaf; | 10 | struct leaf leaf; |
10 | }; | 11 | }; |
12 | struct list_head dirty; | ||
13 | struct list_head cache; | ||
11 | }; | 14 | }; |
12 | 15 | ||
13 | struct tree_buffer *read_tree_block(struct ctree_root *root, u64 blocknr); | 16 | struct tree_buffer *read_tree_block(struct ctree_root *root, u64 blocknr); |
14 | struct tree_buffer *find_tree_block(struct ctree_root *root, u64 blocknr); | 17 | struct tree_buffer *find_tree_block(struct ctree_root *root, u64 blocknr); |
15 | int write_tree_block(struct ctree_root *root, struct tree_buffer *buf); | 18 | int write_tree_block(struct ctree_root *root, struct tree_buffer *buf); |
19 | int dirty_tree_block(struct ctree_root *root, struct tree_buffer *buf); | ||
20 | int clean_tree_block(struct ctree_root *root, struct tree_buffer *buf); | ||
21 | int commit_transaction(struct ctree_root *root); | ||
16 | struct ctree_root *open_ctree(char *filename, struct ctree_super_block *s); | 22 | struct ctree_root *open_ctree(char *filename, struct ctree_super_block *s); |
17 | int close_ctree(struct ctree_root *root); | 23 | int close_ctree(struct ctree_root *root); |
18 | void tree_block_release(struct ctree_root *root, struct tree_buffer *buf); | 24 | void tree_block_release(struct ctree_root *root, struct tree_buffer *buf); |