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)
commit03679ade86b2b1c370c8790f1ffcbcdef6d49f9f
tree880ee59349f2a9fa6b906f3ba70993ba5fbd3e1d
parent293a8489f300536dc6d996c35a6ebb89aa03bab2
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