aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_map.c
diff options
context:
space:
mode:
authorChris Mason <chris.mason@oracle.com>2007-10-15 16:15:19 -0400
committerChris Mason <chris.mason@oracle.com>2008-09-25 11:03:56 -0400
commit96b5179d0d9b6368c203856f2ad6e8e12a8b2a2c (patch)
tree58b22f106bb06902c280c66af661d9e9d6a65597 /fs/btrfs/extent_map.c
parentf510cfecfc98759d75283823cfccf0cc0d59a4c6 (diff)
Btrfs: Stop using radix trees for the block group cache
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'fs/btrfs/extent_map.c')
-rw-r--r--fs/btrfs/extent_map.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c
index 5b7dbcaacd11..1b2f9e059de6 100644
--- a/fs/btrfs/extent_map.c
+++ b/fs/btrfs/extent_map.c
@@ -574,7 +574,7 @@ out:
574 return set; 574 return set;
575 575
576search_again: 576search_again:
577 if (start >= end) 577 if (start > end)
578 goto out; 578 goto out;
579 write_unlock_irqrestore(&tree->lock, flags); 579 write_unlock_irqrestore(&tree->lock, flags);
580 if (mask & __GFP_WAIT) 580 if (mask & __GFP_WAIT)
@@ -819,6 +819,21 @@ int set_extent_dirty(struct extent_map_tree *tree, u64 start, u64 end,
819} 819}
820EXPORT_SYMBOL(set_extent_dirty); 820EXPORT_SYMBOL(set_extent_dirty);
821 821
822int set_extent_bits(struct extent_map_tree *tree, u64 start, u64 end,
823 int bits, gfp_t mask)
824{
825 return set_extent_bit(tree, start, end, bits, 0, NULL,
826 mask);
827}
828EXPORT_SYMBOL(set_extent_bits);
829
830int clear_extent_bits(struct extent_map_tree *tree, u64 start, u64 end,
831 int bits, gfp_t mask)
832{
833 return clear_extent_bit(tree, start, end, bits, 0, 0, mask);
834}
835EXPORT_SYMBOL(clear_extent_bits);
836
822int set_extent_delalloc(struct extent_map_tree *tree, u64 start, u64 end, 837int set_extent_delalloc(struct extent_map_tree *tree, u64 start, u64 end,
823 gfp_t mask) 838 gfp_t mask)
824{ 839{
@@ -1138,7 +1153,6 @@ int set_state_private(struct extent_map_tree *tree, u64 start, u64 private)
1138out: 1153out:
1139 write_unlock_irq(&tree->lock); 1154 write_unlock_irq(&tree->lock);
1140 return ret; 1155 return ret;
1141
1142} 1156}
1143 1157
1144int get_state_private(struct extent_map_tree *tree, u64 start, u64 *private) 1158int get_state_private(struct extent_map_tree *tree, u64 start, u64 *private)