From: Josef Bacik Date: Wed, 11 Nov 2009 02:23:47 +0000 (-0500) Subject: Btrfs: fix data allocation hint start X-Git-Tag: v2.6.32-rc7~36^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6346c93988caa3048bf4d81f9ba3608a7a195aa2;p=pandora-kernel.git Btrfs: fix data allocation hint start Sometimes our start allocation hint when we cow a file can be either EXTENT_HOLE or some other such place holder, which is not optimal. So if we find that our em->block_start is one of these special values, check to see where the first block of the inode is stored, and use that as a hint. If that block is also a special value, just fallback on a hint of 0 and let the allocator figure out a good place to put the data. Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed