block: make umount_device() function more generic
authorRafał Miłecki <rafal@milecki.pl>
Fri, 30 Nov 2018 17:26:11 +0000 (18:26 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Wed, 5 Dec 2018 20:56:37 +0000 (21:56 +0100)
commit6b445fa39bc1ffa88e871c31999b57719c3909f8
tree91a6d375a11d4d4659c85906206bee40f7031c0c
parenta778468bca43a269d80b31b5d7b96bf745a00f38
block: make umount_device() function more generic

Make it accept device path instead of struct probe_info. This way it can
be reused by code fired when device is already gone.

To keep existing functionality two checks have been moved to the
main_umount().

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
block.c