diff options
author | Anand Jain <Anand.Jain@oracle.com> | 2014-05-20 02:38:11 -0400 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-06-09 20:20:54 -0400 |
commit | 402a0f475938f26b0c7b3175c8163b91a12a8a9a (patch) | |
tree | 7ef1a815e6e0ceb3cbb3b78f6371f818fbd02f55 /fs/btrfs | |
parent | 67a77eb147a36fdc346f1b9ff84649209d51f1da (diff) |
btrfs: usage error should not be logged into system log
I have an opinion that system logs /var/log/messages are
valuable info to investigate the real system issues at
the data center. People handling data center issues
do spend a lot time and efforts analyzing messages
files. Having usage error logged into /var/log/messages
is something we should avoid.
Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs')
-rw-r--r-- | fs/btrfs/sysfs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/btrfs/sysfs.c b/fs/btrfs/sysfs.c index ba2a645dee07..c0dfda5644f2 100644 --- a/fs/btrfs/sysfs.c +++ b/fs/btrfs/sysfs.c | |||
@@ -374,11 +374,8 @@ static ssize_t btrfs_label_store(struct kobject *kobj, | |||
374 | struct btrfs_root *root = fs_info->fs_root; | 374 | struct btrfs_root *root = fs_info->fs_root; |
375 | int ret; | 375 | int ret; |
376 | 376 | ||
377 | if (len >= BTRFS_LABEL_SIZE) { | 377 | if (len >= BTRFS_LABEL_SIZE) |
378 | pr_err("BTRFS: unable to set label with more than %d bytes\n", | ||
379 | BTRFS_LABEL_SIZE - 1); | ||
380 | return -EINVAL; | 378 | return -EINVAL; |
381 | } | ||
382 | 379 | ||
383 | trans = btrfs_start_transaction(root, 0); | 380 | trans = btrfs_start_transaction(root, 0); |
384 | if (IS_ERR(trans)) | 381 | if (IS_ERR(trans)) |