diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-09-27 01:18:00 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:42 +0300 |
commit | 68b6cd194ab23d0696a9d7adb024eabca95d4920 (patch) | |
tree | 793c109e27ad1f9b247732ce13a85fb01b330d0e /fs/bcachefs/alloc_foreground.c | |
parent | c298fd7d346f5a7c55c4f1d01f97fbd39da9ff53 (diff) | |
download | linux-68b6cd194ab23d0696a9d7adb024eabca95d4920.tar.xz |
bcachefs: Improve bucket_alloc tracepoint
It now includes more info - whether the bucket was for metadata or data
- and also call it in the same place as the bucket_alloc_fail
tracepoint.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_foreground.c')
-rw-r--r-- | fs/bcachefs/alloc_foreground.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/bcachefs/alloc_foreground.c b/fs/bcachefs/alloc_foreground.c index e890b09f80c6..0525a4ee0dd1 100644 --- a/fs/bcachefs/alloc_foreground.c +++ b/fs/bcachefs/alloc_foreground.c @@ -587,6 +587,8 @@ err: if (!IS_ERR(ob)) trace_and_count(c, bucket_alloc, ca, bch2_alloc_reserves[reserve], + may_alloc_partial, + ob->bucket, usage.d[BCH_DATA_free].buckets, avail, bch2_copygc_wait_amount(c), @@ -600,6 +602,8 @@ err: else trace_and_count(c, bucket_alloc_fail, ca, bch2_alloc_reserves[reserve], + may_alloc_partial, + 0, usage.d[BCH_DATA_free].buckets, avail, bch2_copygc_wait_amount(c), |