btrfs: add helper for device path or missing
authorAnand Jain <anand.jain@oracle.com>
Tue, 28 Nov 2017 02:43:10 +0000 (10:43 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:15 +0000 (16:08 +0100)
commit3c958bd23b60c22947b857d2cb13196e2cc58c58
tree2d1043ef3f6f633e71ded47ff86eb1de1de6340a
parent38b5f68e98117daa221c7df813608f48c374aef4
btrfs: add helper for device path or missing

This patch creates a helper function to get either the rcu device path
or missing.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
[ rename to btrfs_dev_name, switch to if/else ]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/dev-replace.c