From: Wang Shilong Date: Sun, 12 Jan 2014 13:38:33 +0000 (+0800) Subject: Btrfs: fix to search previous metadata extent item since skinny metadata X-Git-Tag: v3.14-rc1~29^2~32 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade2e0b3eeca941a5cd486bac21599ff87f288c8;p=pandora-kernel.git Btrfs: fix to search previous metadata extent item since skinny metadata There is a bug that using btrfs_previous_item() to search metadata extent item. This is because in btrfs_previous_item(), we need type match, however, since skinny metada was introduced by josef, we may mix this two types. So just use btrfs_previous_item() is not working right. To keep btrfs_previous_item() like normal tree search, i introduce another function btrfs_previous_extent_item(). Signed-off-by: Wang Shilong Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed