diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2017-09-08 10:48:55 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-09-26 14:52:31 +0200 |
commit | 78ad4ce014d025f41b8dde3a81876832ead643cf (patch) | |
tree | 902bf4b9ff9285500a6ff8b00a608c21395ed655 /block | |
parent | btrfs: prevent to set invalid default subvolid (diff) | |
download | linux-78ad4ce014d025f41b8dde3a81876832ead643cf.tar.xz linux-78ad4ce014d025f41b8dde3a81876832ead643cf.zip |
btrfs: propagate error to btrfs_cmp_data_prepare caller
btrfs_cmp_data_prepare() (almost) always returns 0 i.e. ignoring errors
from gather_extent_pages(). While the pages are freed by
btrfs_cmp_data_free(), cmp->num_pages still has > 0. Then,
btrfs_extent_same() try to access the already freed pages causing faults
(or violates PageLocked assertion).
This patch just return the error as is so that the caller stop the process.
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Fixes: f441460202cb ("btrfs: fix deadlock with extent-same and readpage")
Cc: <stable@vger.kernel.org> # 4.2
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions