Btrfs: fix that error value is changed by mistake
authorStefan Behrens <sbehrens@giantdisaster.de>
Wed, 1 Aug 2012 10:28:01 +0000 (04:28 -0600)
committerChris Mason <chris.mason@oracle.com>
Tue, 28 Aug 2012 20:53:28 +0000 (16:53 -0400)
commit3627bf4503b504077332c13496cb1bd54713bcbb
treed6b523f51c81ba3c6a705be541b6834cdbdec3b5
parenteb838e73dc2121d2bae47d5678952cd7d48793b5
Btrfs: fix that error value is changed by mistake

In iterate_inodes_from_logical() the error result from
extent_from_logical() is patched by mistake. Typically ENOENT is
patched to EINVAL because (-ENOENT & BTRFS_EXTENT_FLAG_TREE_BLOCK)
evaluates to true.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
fs/btrfs/backref.c