btrfs: refactor find_device helper
authorDavid Sterba <dsterba@suse.com>
Thu, 15 Jun 2017 17:51:51 +0000 (19:51 +0200)
committerDavid Sterba <dsterba@suse.com>
Wed, 16 Aug 2017 14:12:04 +0000 (16:12 +0200)
commit35c70103a528603afb538ffeafe40c7b8251b0fe
tree7d7619c776b612e8ca191a6b0a245e703c0fb878
parent2dfeca9bfb0cdd9b18bdb8d222a5e5f1479c5ca2
btrfs: refactor find_device helper

Polish the helper:
* drop underscores, no special meaning here
* pass fs_devices, as this is what the API implements
* drop noinline, no apparent reason for such simple helper
* constify uuid
* add comment

Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c