Skip to content

Commit

Permalink
bcache: Use WARN_ONCE() instead of __WARN()
Browse files Browse the repository at this point in the history
Signed-off-by: Kent Overstreet <koverstreet@google.com>
  • Loading branch information
Kent Overstreet committed Apr 8, 2013
1 parent cd953ed commit cc0f4ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/bcache/bset.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ struct bkey *bch_btree_iter_next(struct btree_iter *iter)
iter->data->k = bkey_next(iter->data->k);

if (iter->data->k > iter->data->end) {
__WARN();
WARN_ONCE(1, "bset was corrupt!\n");
iter->data->k = iter->data->end;
}

Expand Down

0 comments on commit cc0f4ea

Please sign in to comment.