diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-21 12:04:10 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-21 20:14:28 -0400 |
| commit | 5f0de475f967a094bd596913ffbe9ad9b33b4e3a (patch) | |
| tree | cfad7e21953132c8d26c50fd22b4b95036214c98 /fs/bcachefs/util.h | |
| parent | bcachefs: bch_dev.io_ref -> enumerated_ref (diff) | |
| download | linux-5f0de475f967a094bd596913ffbe9ad9b33b4e3a.tar.gz linux-5f0de475f967a094bd596913ffbe9ad9b33b4e3a.zip | |
bcachefs: bch2_bio_to_text()
Pretty printer for struct bio, to be used for async object debugging.
This is pretty minimal, we'll add more to it as we discover what we
need.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/util.h')
| -rw-r--r-- | fs/bcachefs/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/util.h b/fs/bcachefs/util.h index 50f7197c67fc..7a93e187a49a 100644 --- a/fs/bcachefs/util.h +++ b/fs/bcachefs/util.h @@ -419,6 +419,8 @@ static inline void bch2_maybe_corrupt_bio(struct bio *bio, unsigned ratio) #define bch2_maybe_corrupt_bio(...) do {} while (0) #endif +void bch2_bio_to_text(struct printbuf *, struct bio *); + static inline void memcpy_u64s_small(void *dst, const void *src, unsigned u64s) { |
