diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-07-25 17:06:11 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:43 -0400 |
commit | 7807e143849e0f86fce6ce7d4907412915d29918 (patch) | |
tree | 410c1bdd413ebaf858d72bb6e33ec8ad152f5937 /fs/bcachefs/clock.h | |
parent | 4580baec7fbee2fdceb9b5b2b337ea3734a6d2b8 (diff) | |
download | linux-7807e143849e0f86fce6ce7d4907412915d29918.tar.gz linux-7807e143849e0f86fce6ce7d4907412915d29918.tar.bz2 linux-7807e143849e0f86fce6ce7d4907412915d29918.zip |
bcachefs: Convert various code to printbuf
printbufs know how big the buffer is that was allocated, so we can get
rid of the random PAGE_SIZEs all over the place.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/clock.h')
-rw-r--r-- | fs/bcachefs/clock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/clock.h b/fs/bcachefs/clock.h index da50afe206cc..70a0f7436c84 100644 --- a/fs/bcachefs/clock.h +++ b/fs/bcachefs/clock.h @@ -30,7 +30,7 @@ void bch2_io_clock_schedule_timeout(struct io_clock *, unsigned long); __ret; \ }) -ssize_t bch2_io_timers_show(struct io_clock *, char *); +void bch2_io_timers_to_text(struct printbuf *, struct io_clock *); void bch2_io_clock_exit(struct io_clock *); int bch2_io_clock_init(struct io_clock *); |