diff options
author | Chris Mason <chris.mason@oracle.com> | 2009-09-18 16:07:03 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2009-09-18 16:08:52 -0400 |
commit | b917b7c3be50435fa8257591b964934e917f2d45 (patch) | |
tree | efdc2f768da474a4904dc6c065cc6e4b9a2379d3 /fs/btrfs/extent_map.h | |
parent | f85d7d6c8f2ad4a86a1f4f4e3791f36dede2fa76 (diff) | |
download | blackbird-obmc-linux-b917b7c3be50435fa8257591b964934e917f2d45.tar.gz blackbird-obmc-linux-b917b7c3be50435fa8257591b964934e917f2d45.zip |
Btrfs: search for an allocation hint while filling file COW
The allocator has some nice knobs for sending hints about where
to try and allocate new blocks, but when we're doing file allocations
we're not sending any hint at all.
This commit adds a simple extent map search to see if we can
quickly and easily find a hint for the allocator.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/extent_map.h b/fs/btrfs/extent_map.h index d3d442f4bbbd..ab6d74b6e647 100644 --- a/fs/btrfs/extent_map.h +++ b/fs/btrfs/extent_map.h @@ -60,4 +60,6 @@ void free_extent_map(struct extent_map *em); int __init extent_map_init(void); void extent_map_exit(void); int unpin_extent_cache(struct extent_map_tree *tree, u64 start, u64 len); +struct extent_map *search_extent_mapping(struct extent_map_tree *tree, + u64 start, u64 len); #endif |