Btrfs: add two more find_device() methods
authorStefan Behrens <sbehrens@giantdisaster.de>
Mon, 5 Nov 2012 13:42:30 +0000 (14:42 +0100)
committerJosef Bacik <jbacik@fusionio.com>
Wed, 12 Dec 2012 22:15:33 +0000 (17:15 -0500)
commit7ba15b7d211846c187a7c5dc75a5964476f8bc89
tree7af9534b30451d08e4dca7e8f4076d09773cfeb8
parentbeaf8ab3afef27ed81255d9808b67f6d390ca06f
Btrfs: add two more find_device() methods

The new function btrfs_find_device_missing_or_by_path() will be
used for the device replace procedure. This function itself calls
the second new function btrfs_find_device_by_path().
Unfortunately, it is not possible to currently make the rest of the
code use these functions as well, since all functions that look
similar at first view are all a little bit different in what they
are doing. But in the future, new code could benefit from these
two new functions, and currently, device replace uses them.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h