btrfs: don't try to notify udev about missing devices
authorEric Sandeen <[email protected]>
Thu, 31 Jan 2013 00:55:02 +0000 (00:55 +0000)
committerChris Mason <[email protected]>
Fri, 1 Feb 2013 16:47:37 +0000 (11:47 -0500)
commit3c911608085bf2d5a0822c418129f96a2a89d1b5
treea4051468cbdd648563a055eed4718eeb0dc7b756
parent57ba86c00f9573b63b8c06810d4f6915efed2442
btrfs: don't try to notify udev about missing devices

If we remove a missing device, bdev is null, and if we
send that off to btrfs_kobject_uevent we'll panic.

Signed-off-by: Eric Sandeen <[email protected]>
Signed-off-by: Josef Bacik <[email protected]>
Signed-off-by: Chris Mason <[email protected]>
fs/btrfs/volumes.c