aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2010-10-29 09:27:49 -0400
committerChris Mason <chris.mason@oracle.com>2010-10-29 09:27:49 -0400
commit6b5b817f103450444f3f658a498f435d92a197e5 (patch)
tree2896588127c4dd6c2867ef09e7e3cdd83391f8ae /fs/btrfs/ctree.h
parent8216ef866df1119fd5a72372b8b29bce49c18590 (diff)
parente9bb7f10d3617304ef94ff7aa8fefbce3078f08b (diff)
Merge branch 'bug-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/josef/btrfs-work
Conflicts: fs/btrfs/extent-tree.c Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 633e559e000e..88c0fb7e12d2 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -698,7 +698,8 @@ struct btrfs_block_group_item {
698struct btrfs_space_info { 698struct btrfs_space_info {
699 u64 flags; 699 u64 flags;
700 700
701 u64 total_bytes; /* total bytes in the space */ 701 u64 total_bytes; /* total bytes in the space,
702 this doesn't take mirrors into account */
702 u64 bytes_used; /* total bytes used, 703 u64 bytes_used; /* total bytes used,
703 this does't take mirrors into account */ 704 this does't take mirrors into account */
704 u64 bytes_pinned; /* total bytes pinned, will be freed when the 705 u64 bytes_pinned; /* total bytes pinned, will be freed when the
@@ -710,6 +711,8 @@ struct btrfs_space_info {
710 u64 bytes_may_use; /* number of bytes that may be used for 711 u64 bytes_may_use; /* number of bytes that may be used for
711 delalloc/allocations */ 712 delalloc/allocations */
712 u64 disk_used; /* total bytes used on disk */ 713 u64 disk_used; /* total bytes used on disk */
714 u64 disk_total; /* total bytes on disk, takes mirrors into
715 account */
713 716
714 int full; /* indicates that we cannot allocate any more 717 int full; /* indicates that we cannot allocate any more
715 chunks for this space */ 718 chunks for this space */
@@ -2146,7 +2149,7 @@ int btrfs_check_data_free_space(struct inode *inode, u64 bytes);
2146void btrfs_free_reserved_data_space(struct inode *inode, u64 bytes); 2149void btrfs_free_reserved_data_space(struct inode *inode, u64 bytes);
2147int btrfs_trans_reserve_metadata(struct btrfs_trans_handle *trans, 2150int btrfs_trans_reserve_metadata(struct btrfs_trans_handle *trans,
2148 struct btrfs_root *root, 2151 struct btrfs_root *root,
2149 int num_items, int *retries); 2152 int num_items);
2150void btrfs_trans_release_metadata(struct btrfs_trans_handle *trans, 2153void btrfs_trans_release_metadata(struct btrfs_trans_handle *trans,
2151 struct btrfs_root *root); 2154 struct btrfs_root *root);
2152int btrfs_orphan_reserve_metadata(struct btrfs_trans_handle *trans, 2155int btrfs_orphan_reserve_metadata(struct btrfs_trans_handle *trans,
@@ -2167,7 +2170,7 @@ void btrfs_add_durable_block_rsv(struct btrfs_fs_info *fs_info,
2167int btrfs_block_rsv_add(struct btrfs_trans_handle *trans, 2170int btrfs_block_rsv_add(struct btrfs_trans_handle *trans,
2168 struct btrfs_root *root, 2171 struct btrfs_root *root,
2169 struct btrfs_block_rsv *block_rsv, 2172 struct btrfs_block_rsv *block_rsv,
2170 u64 num_bytes, int *retries); 2173 u64 num_bytes);
2171int btrfs_block_rsv_check(struct btrfs_trans_handle *trans, 2174int btrfs_block_rsv_check(struct btrfs_trans_handle *trans,
2172 struct btrfs_root *root, 2175 struct btrfs_root *root,
2173 struct btrfs_block_rsv *block_rsv, 2176 struct btrfs_block_rsv *block_rsv,
@@ -2441,7 +2444,8 @@ int btrfs_truncate_inode_items(struct btrfs_trans_handle *trans,
2441 u32 min_type); 2444 u32 min_type);
2442 2445
2443int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput); 2446int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput);
2444int btrfs_start_one_delalloc_inode(struct btrfs_root *root, int delay_iput); 2447int btrfs_start_one_delalloc_inode(struct btrfs_root *root, int delay_iput,
2448 int sync);
2445int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end, 2449int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end,
2446 struct extent_state **cached_state); 2450 struct extent_state **cached_state);
2447int btrfs_writepages(struct address_space *mapping, 2451int btrfs_writepages(struct address_space *mapping,