Btrfs: fix that error value is changed by mistake