Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ccf39f92 authored by David Sterba's avatar David Sterba Committed by Chris Mason
Browse files

btrfs: make errors in btrfs_num_copies less noisy



The log message level 'critical' is verbose enough, 'emergency' beeps on
all terminals.

Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarJosef Bacik <jbacik@fusionio.com>
Signed-off-by: default avatarChris Mason <chris.mason@fusionio.com>
parent 52ee28d2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4196,13 +4196,13 @@ int btrfs_num_copies(struct btrfs_fs_info *fs_info, u64 logical, u64 len)
	 * and exit, so return 1 so the callers don't try to use other copies.
	 */
	if (!em) {
		btrfs_emerg(fs_info, "No mapping for %Lu-%Lu\n", logical,
		btrfs_crit(fs_info, "No mapping for %Lu-%Lu\n", logical,
			    logical+len);
		return 1;
	}

	if (em->start > logical || em->start + em->len < logical) {
		btrfs_emerg(fs_info, "Invalid mapping for %Lu-%Lu, got "
		btrfs_crit(fs_info, "Invalid mapping for %Lu-%Lu, got "
			    "%Lu-%Lu\n", logical, logical+len, em->start,
			    em->start + em->len);
		return 1;