From: Jan Schmidt Date: Wed, 8 Feb 2012 15:01:01 +0000 (+0100) Subject: Btrfs: avoid positive number with ERR_PTR X-Git-Tag: v3.3-rc5~9^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f24b49688281a77e8331894ed407f0cfe732303;p=pandora-kernel.git Btrfs: avoid positive number with ERR_PTR inode_ref_info() returns 1 when the element wasn't found and < 0 on error, just like btrfs_search_slot(). In iref_to_path() it's an error when the inode ref can't be found, thus we return ERR_PTR(ret) in that case. In order to avoid ERR_PTR(1), we now set ret to -ENOENT in that case. Signed-off-by: Jan Schmidt --- Reading git-diff-tree failed