]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf01458b655dd023e183d2e704b53a0bd59192e35
treed6b523f51c81ba3c6a705be541b6834cdbdec3b5
parent1517bacda81c9c7a509ae26e85be9f72e57c1c10
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