diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-09-11 20:44:33 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:12 -0400 |
commit | feb5cc398120ce09fd7c72d361b3d14d9e280b96 (patch) | |
tree | a4ed6e786d6132f1b3771ed883f3f6afc97bf35e /fs/bcachefs/errcode.h | |
parent | f3e374efbf1e32fc0235d44abc68abae06a8f7ab (diff) | |
download | linux-feb5cc398120ce09fd7c72d361b3d14d9e280b96.tar.gz linux-feb5cc398120ce09fd7c72d361b3d14d9e280b96.tar.bz2 linux-feb5cc398120ce09fd7c72d361b3d14d9e280b96.zip |
bcachefs: trace_read_nopromote()
Add a tracepoint to print the reason a read wasn't promoted.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/errcode.h')
-rw-r--r-- | fs/bcachefs/errcode.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/bcachefs/errcode.h b/fs/bcachefs/errcode.h index 379d9d7ed333..56b6ce278648 100644 --- a/fs/bcachefs/errcode.h +++ b/fs/bcachefs/errcode.h @@ -218,7 +218,14 @@ x(BCH_ERR_btree_node_read_err, btree_node_read_err_want_retry) \ x(BCH_ERR_btree_node_read_err, btree_node_read_err_must_retry) \ x(BCH_ERR_btree_node_read_err, btree_node_read_err_bad_node) \ - x(BCH_ERR_btree_node_read_err, btree_node_read_err_incompatible) + x(BCH_ERR_btree_node_read_err, btree_node_read_err_incompatible) \ + x(0, nopromote) \ + x(BCH_ERR_nopromote, nopromote_may_not) \ + x(BCH_ERR_nopromote, nopromote_already_promoted) \ + x(BCH_ERR_nopromote, nopromote_unwritten) \ + x(BCH_ERR_nopromote, nopromote_congested) \ + x(BCH_ERR_nopromote, nopromote_in_flight) \ + x(BCH_ERR_nopromote, nopromote_enomem) enum bch_errcode { BCH_ERR_START = 2048, |