]> git.hungrycats.org Git - linux/commitdiff
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)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Thu, 25 Feb 2016 01:50:59 +0000 (20:50 -0500)
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>
(cherry picked from commit 11ea474f74709fc764fb7e80306e0776f94ce8b8)

Conflicts:
fs/btrfs/ioctl.c

fs/btrfs/ioctl.c

index 8fca9f52204f2ae21cf1abc570cbfdc18e531c3e..4db803e4c485318acaa8725b89da68efd6eb2889 100644 (file)
@@ -2085,8 +2085,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)) {
-                       printk(KERN_ERR "BTRFS: could not find root %llu\n",
-                              sk->tree_id);
                        btrfs_free_path(path);
                        return -ENOENT;
                }