btrfs: move pr_info into device_list_add
authorAnand Jain <anand.jain@oracle.com>
Thu, 18 Jan 2018 14:02:33 +0000 (22:02 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 19:25:54 +0000 (20:25 +0100)
commit327f18cc7f44bc09170200514f42e61bce25d022
tree0d18afda02b5bbf8c3ba6a41ee907d75daab95a7
parentd8367db30a101123f82a9408c8c6dd3fb287653f
btrfs: move pr_info into device_list_add

Commit 60999ca4b403 ("btrfs: make device scan less noisy")
adds return value 1 to device_list_add(), so that parent function can
call pr_info only when new device is added. Move the pr_info() part
into device_list_add() so that this function can be kept simple.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c