]> git.karo-electronics.de Git - mv-sheeva.git/commit
Btrfs: search for an allocation hint while filling file COW
authorChris Mason <chris.mason@oracle.com>
Fri, 18 Sep 2009 20:07:03 +0000 (16:07 -0400)
committerChris Mason <chris.mason@oracle.com>
Fri, 18 Sep 2009 20:08:52 +0000 (16:08 -0400)
commitb917b7c3be50435fa8257591b964934e917f2d45
treeefdc2f768da474a4904dc6c065cc6e4b9a2379d3
parentf85d7d6c8f2ad4a86a1f4f4e3791f36dede2fa76
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>
fs/btrfs/extent_map.c
fs/btrfs/extent_map.h
fs/btrfs/inode.c