btrfs: use common helpers for extent IO state insertion messages
Print the error messages using the helpers that also print the filesystem identification. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
63611e738a
commit
2792237d0c
|
@ -522,9 +522,11 @@ static int insert_state(struct extent_io_tree *tree,
|
||||||
{
|
{
|
||||||
struct rb_node *node;
|
struct rb_node *node;
|
||||||
|
|
||||||
if (end < start)
|
if (end < start) {
|
||||||
WARN(1, KERN_ERR "BTRFS: end < start %llu %llu\n",
|
btrfs_err(tree->fs_info,
|
||||||
end, start);
|
"insert state: end < start %llu %llu", end, start);
|
||||||
|
WARN_ON(1);
|
||||||
|
}
|
||||||
state->start = start;
|
state->start = start;
|
||||||
state->end = end;
|
state->end = end;
|
||||||
|
|
||||||
|
@ -534,7 +536,8 @@ static int insert_state(struct extent_io_tree *tree,
|
||||||
if (node) {
|
if (node) {
|
||||||
struct extent_state *found;
|
struct extent_state *found;
|
||||||
found = rb_entry(node, struct extent_state, rb_node);
|
found = rb_entry(node, struct extent_state, rb_node);
|
||||||
pr_err("BTRFS: found node %llu %llu on insert of %llu %llu\n",
|
btrfs_err(tree->fs_info,
|
||||||
|
"found node %llu %llu on insert of %llu %llu",
|
||||||
found->start, found->end, start, end);
|
found->start, found->end, start, end);
|
||||||
return -EEXIST;
|
return -EEXIST;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue