]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: remove misleading handling of missing device scrub
authorOmar Sandoval <osandov@fb.com>
Fri, 19 Jun 2015 18:52:48 +0000 (11:52 -0700)
committerChris Mason <clm@fb.com>
Sun, 9 Aug 2015 14:34:26 +0000 (07:34 -0700)
commit88361c2867e00490f033fb006c591ee3106c9d4c
tree880ee59349f2a9fa6b906f3ba70993ba5fbd3e1d
parent0dae5286b8bb6039ebfeaece24a15c69c61cbb52
Btrfs: remove misleading handling of missing device scrub

scrub_submit() claims that it can handle a bio with a NULL block device,
but this is misleading, as calling bio_add_page() on a bio with a NULL
->bi_bdev would've already crashed. Delete this, as we're about to
properly handle a missing block device.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/scrub.c