summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_map.h
diff options
context:
space:
mode:
authorChris Mason2007-12-21 22:27:21 +0100
committerChris Mason2008-09-25 17:03:58 +0200
commit1832a6d5ee3b1af61001cadba9e10da9e91af4a4 (patch)
tree3a6dcb2a186c3623b0355b7e45d1b94ecae5e54d /fs/btrfs/extent_map.h
parentBtrfs: Less aggressive readahead on deletes (diff)
downloadkernel-qcow2-linux-1832a6d5ee3b1af61001cadba9e10da9e91af4a4.tar.gz
kernel-qcow2-linux-1832a6d5ee3b1af61001cadba9e10da9e91af4a4.tar.xz
kernel-qcow2-linux-1832a6d5ee3b1af61001cadba9e10da9e91af4a4.zip
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h
index 6e572d3e8924..ea60f5447b5b 100644
--- a/fs/btrfs/extent_map.h
+++ b/fs/btrfs/extent_map.h
@@ -115,7 +115,8 @@ int __init extent_map_init(void);
void extent_map_exit(void);
u64 count_range_bits(struct extent_map_tree *tree,
- u64 *start, u64 max_bytes, unsigned long bits);
+ u64 *start, u64 search_end,
+ u64 max_bytes, unsigned long bits);
int test_range_bit(struct extent_map_tree *tree, u64 start, u64 end,
int bits, int filled);