diff options
author | Chris Mason <chris.mason@oracle.com> | 2007-12-21 16:27:21 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2008-09-25 11:03:58 -0400 |
commit | 1832a6d5ee3b1af61001cadba9e10da9e91af4a4 (patch) | |
tree | 3a6dcb2a186c3623b0355b7e45d1b94ecae5e54d /fs/btrfs/extent_map.h | |
parent | 01f466580502c57001bf80fff709479fdb9e87a5 (diff) |
Btrfs: Implement basic support for -ENOSPC
This is intended to prevent accidentally filling the drive. A determined
user can still make things oops.
It includes some accounting of the current bytes under delayed allocation,
but this will change as things get optimized
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.h')
-rw-r--r-- | fs/btrfs/extent_map.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index 6e572d3e892..ea60f5447b5 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h | |||
@@ -115,7 +115,8 @@ int __init extent_map_init(void); | |||
115 | void extent_map_exit(void); | 115 | void extent_map_exit(void); |
116 | 116 | ||
117 | u64 count_range_bits(struct extent_map_tree *tree, | 117 | u64 count_range_bits(struct extent_map_tree *tree, |
118 | u64 *start, u64 max_bytes, unsigned long bits); | 118 | u64 *start, u64 search_end, |
119 | u64 max_bytes, unsigned long bits); | ||
119 | 120 | ||
120 | int test_range_bit(struct extent_map_tree *tree, u64 start, u64 end, | 121 | int test_range_bit(struct extent_map_tree *tree, u64 start, u64 end, |
121 | int bits, int filled); | 122 | int bits, int filled); |