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.h6
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
4struct tree_buffer { 5struct 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
13struct tree_buffer *read_tree_block(struct ctree_root *root, u64 blocknr); 16struct tree_buffer *read_tree_block(struct ctree_root *root, u64 blocknr);
14struct tree_buffer *find_tree_block(struct ctree_root *root, u64 blocknr); 17struct tree_buffer *find_tree_block(struct ctree_root *root, u64 blocknr);
15int write_tree_block(struct ctree_root *root, struct tree_buffer *buf); 18int write_tree_block(struct ctree_root *root, struct tree_buffer *buf);
19int dirty_tree_block(struct ctree_root *root, struct tree_buffer *buf);
20int clean_tree_block(struct ctree_root *root, struct tree_buffer *buf);
21int commit_transaction(struct ctree_root *root);
16struct ctree_root *open_ctree(char *filename, struct ctree_super_block *s); 22struct ctree_root *open_ctree(char *filename, struct ctree_super_block *s);
17int close_ctree(struct ctree_root *root); 23int close_ctree(struct ctree_root *root);
18void tree_block_release(struct ctree_root *root, struct tree_buffer *buf); 24void tree_block_release(struct ctree_root *root, struct tree_buffer *buf);