btrfs-progs: Let function find_device to be consistent with kernel
authorGu Jinxiang <gujx@cn.fujitsu.com>
Mon, 2 Apr 2018 03:30:12 +0000 (11:30 +0800)
committerDavid Sterba <dsterba@suse.com>
Tue, 24 Apr 2018 11:00:10 +0000 (13:00 +0200)
commita5e29bbc1bad623dd1bdf5c9de3cb933ff525470
treec14c5833f1beaaa1cd3a37dac7c2d54440df75c6
parent631bf9f2b9aab3ac84a2646b04dbe7ec303a7ef1
btrfs-progs: Let function find_device to be consistent with kernel

Make find_device to be consistent with kernel according
35c70103a528 ("btrfs: refactor find_device helper")

And, modify the compare condition from both devid and uuid to
devid or devid and uuid according
8f18cf13396c ("Btrfs: Make the resizer work based on shrinking and growing devices")

Signed-off-by: Gu Jinxiang <gujx@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
volumes.c