diff options
author | Chris Mason <chris.mason@oracle.com> | 2010-10-29 09:27:49 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2010-10-29 09:27:49 -0400 |
commit | 6b5b817f103450444f3f658a498f435d92a197e5 (patch) | |
tree | 2896588127c4dd6c2867ef09e7e3cdd83391f8ae /fs/btrfs/ctree.h | |
parent | 8216ef866df1119fd5a72372b8b29bce49c18590 (diff) | |
parent | e9bb7f10d3617304ef94ff7aa8fefbce3078f08b (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.h | 12 |
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 { | |||
698 | struct btrfs_space_info { | 698 | struct 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); | |||
2146 | void btrfs_free_reserved_data_space(struct inode *inode, u64 bytes); | 2149 | void btrfs_free_reserved_data_space(struct inode *inode, u64 bytes); |
2147 | int btrfs_trans_reserve_metadata(struct btrfs_trans_handle *trans, | 2150 | int 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); |
2150 | void btrfs_trans_release_metadata(struct btrfs_trans_handle *trans, | 2153 | void btrfs_trans_release_metadata(struct btrfs_trans_handle *trans, |
2151 | struct btrfs_root *root); | 2154 | struct btrfs_root *root); |
2152 | int btrfs_orphan_reserve_metadata(struct btrfs_trans_handle *trans, | 2155 | int 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, | |||
2167 | int btrfs_block_rsv_add(struct btrfs_trans_handle *trans, | 2170 | int 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); |
2171 | int btrfs_block_rsv_check(struct btrfs_trans_handle *trans, | 2174 | int 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 | ||
2443 | int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput); | 2446 | int btrfs_start_delalloc_inodes(struct btrfs_root *root, int delay_iput); |
2444 | int btrfs_start_one_delalloc_inode(struct btrfs_root *root, int delay_iput); | 2447 | int btrfs_start_one_delalloc_inode(struct btrfs_root *root, int delay_iput, |
2448 | int sync); | ||
2445 | int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end, | 2449 | int btrfs_set_extent_delalloc(struct inode *inode, u64 start, u64 end, |
2446 | struct extent_state **cached_state); | 2450 | struct extent_state **cached_state); |
2447 | int btrfs_writepages(struct address_space *mapping, | 2451 | int btrfs_writepages(struct address_space *mapping, |