Skip to content
Commit 69f4cb52 authored by Arne Jansen's avatar Arne Jansen Committed by Chris Mason
Browse files

Btrfs: handle bio_add_page failure gracefully in scrub



Currently scrub fails with ENOMEM when bio_add_page fails. Unfortunately
dm based targets accept only one page per bio, thus making scrub always
fails. This patch just submits the current bio when an error is encountered
and starts a new one.

Signed-off-by: default avatarArne Jansen <sensille@gmx.net>
Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 62f30c54
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment