]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: handle bio_add_page failure gracefully in scrub
authorArne Jansen <sensille@gmx.net>
Fri, 11 Nov 2011 13:17:10 +0000 (08:17 -0500)
committerChris Mason <chris.mason@oracle.com>
Fri, 11 Nov 2011 13:17:10 +0000 (08:17 -0500)
commit888ba4a1f1884e95384b6e28a9f0afed952ee0b2
tree0fc400c20ab6293603b8b615467893a13426c82c
parent05dee02152578f1db5e91d5ac3260987e12164bb
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: Arne Jansen <sensille@gmx.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/scrub.c