aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-02-11 09:30:07 -0500
committerDavid Sterba <dsterba@suse.com>2016-02-23 06:54:48 -0500
commit11ea474f74709fc764fb7e80306e0776f94ce8b8 (patch)
tree0e3b8e233cb3410505eb6d0c137b04c0d79f9fe0
parentaa66b0bb08869d93492bd817d2eae694ca743a3d (diff)
btrfs: remove error message from search ioctl for nonexistent tree
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>
-rw-r--r--fs/btrfs/ioctl.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 952172ca7e45..ab390c7958f5 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -2097,8 +2097,6 @@ static noinline int search_ioctl(struct inode *inode,
2097 key.offset = (u64)-1; 2097 key.offset = (u64)-1;
2098 root = btrfs_read_fs_root_no_name(info, &key); 2098 root = btrfs_read_fs_root_no_name(info, &key);
2099 if (IS_ERR(root)) { 2099 if (IS_ERR(root)) {
2100 btrfs_err(info, "could not find root %llu",
2101 sk->tree_id);
2102 btrfs_free_path(path); 2100 btrfs_free_path(path);
2103 return -ENOENT; 2101 return -ENOENT;
2104 } 2102 }