commit | 327f18cc7f44bc09170200514f42e61bce25d022 | [log] [tgz] |
---|---|---|
author | Anand Jain <anand.jain@oracle.com> | Thu Jan 18 22:02:33 2018 +0800 |
committer | David Sterba <dsterba@suse.com> | Mon Jan 22 20:25:54 2018 +0100 |
tree | 0d18afda02b5bbf8c3ba6a41ee907d75daab95a7 | |
parent | d8367db30a101123f82a9408c8c6dd3fb287653f [diff] |
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>