From: Filipe David Borba Manana Date: Mon, 14 Oct 2013 23:12:27 +0000 (+0100) Subject: Btrfs: fix btrfs_prev_leaf() previous key computation X-Git-Tag: v3.13-rc1~85^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8b0d724d596f2ac1264ad830a04ef8e415be956;p=pandora-kernel.git Btrfs: fix btrfs_prev_leaf() previous key computation If we decrement the key type, we must reset its offset to the largest possible offset (u64)-1. If we decrement the key's objectid, then we must reset the key's type and offset to their largest possible values, (u8)-1 and (u64)-1 respectively. Not doing so can make us miss an items in the tree. Signed-off-by: Filipe David Borba Manana Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed