btrfs: remove error message from search ioctl for nonexistent tree
authorDavid Sterba <dsterba@suse.com>
Thu, 11 Feb 2016 14:30:07 +0000 (15:30 +0100)
committerDavid Sterba <dsterba@suse.com>
Tue, 23 Feb 2016 11:54:48 +0000 (12:54 +0100)
Let's remove the error message that appears when the tree_id is not
present. This can happen with the quota tree and has been observed in
practice. The applications are supposed to handle -ENOENT and we don't
need to report that in the system log as it's not a fatal error.

Reported-by: Vlastimil Babka <vbabka@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ioctl.c

index 952172ca7e455633c28a79292d18ebbfd68c4d18..ab390c7958f5566245c3fbcf11217f637e5ed863 100644 (file)
@@ -2097,8 +2097,6 @@ static noinline int search_ioctl(struct inode *inode,
                key.offset = (u64)-1;
                root = btrfs_read_fs_root_no_name(info, &key);
                if (IS_ERR(root)) {
-                       btrfs_err(info, "could not find root %llu",
-                              sk->tree_id);
                        btrfs_free_path(path);
                        return -ENOENT;
                }