Btrfs: don't log error from btrfs_get_bdev_and_sb
authorAnand Jain <anand.jain@oracle.com>
Fri, 14 Aug 2015 10:33:04 +0000 (18:33 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 1 Oct 2015 15:56:47 +0000 (17:56 +0200)
Originally the message was not in a helper but ended up there. We should
print error messages from callers instead.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
[reworded subject and changelog]
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c

index 1cde7849e2dd74125948cd390e759e8e56d8e6d4..694d82bccb0b7d19c3db6faca6785ff4c8ee2f15 100644 (file)
@@ -198,7 +198,6 @@ btrfs_get_bdev_and_sb(const char *device_path, fmode_t flags, void *holder,
 
        if (IS_ERR(*bdev)) {
                ret = PTR_ERR(*bdev);
-               printk(KERN_INFO "BTRFS: open %s failed\n", device_path);
                goto error;
        }