Loading fs/bcachefs/alloc_foreground.c +1 −1 Original line number Diff line number Diff line Loading @@ -1740,7 +1740,7 @@ void bch2_dev_alloc_debug_to_text(struct printbuf *out, struct bch_dev *ca) printbuf_tabstop_push(out, 16); printbuf_tabstop_push(out, 16); bch2_dev_usage_to_text(out, &stats); bch2_dev_usage_to_text(out, ca, &stats); prt_newline(out); Loading fs/bcachefs/buckets.c +8 −4 Original line number Diff line number Diff line Loading @@ -71,7 +71,9 @@ bch2_fs_usage_read_short(struct bch_fs *c) return ret; } void bch2_dev_usage_to_text(struct printbuf *out, struct bch_dev_usage *usage) void bch2_dev_usage_to_text(struct printbuf *out, struct bch_dev *ca, struct bch_dev_usage *usage) { prt_printf(out, "\tbuckets\rsectors\rfragmented\r\n"); Loading @@ -82,6 +84,8 @@ void bch2_dev_usage_to_text(struct printbuf *out, struct bch_dev_usage *usage) usage->d[i].sectors, usage->d[i].fragmented); } prt_printf(out, "capacity\t%llu\r\n", ca->mi.nbuckets); } static int bch2_check_fix_ptr(struct btree_trans *trans, Loading fs/bcachefs/buckets.h +1 −1 Original line number Diff line number Diff line Loading @@ -212,7 +212,7 @@ static inline struct bch_dev_usage bch2_dev_usage_read(struct bch_dev *ca) return ret; } void bch2_dev_usage_to_text(struct printbuf *, struct bch_dev_usage *); void bch2_dev_usage_to_text(struct printbuf *, struct bch_dev *, struct bch_dev_usage *); static inline u64 bch2_dev_buckets_reserved(struct bch_dev *ca, enum bch_watermark watermark) { Loading Loading
fs/bcachefs/alloc_foreground.c +1 −1 Original line number Diff line number Diff line Loading @@ -1740,7 +1740,7 @@ void bch2_dev_alloc_debug_to_text(struct printbuf *out, struct bch_dev *ca) printbuf_tabstop_push(out, 16); printbuf_tabstop_push(out, 16); bch2_dev_usage_to_text(out, &stats); bch2_dev_usage_to_text(out, ca, &stats); prt_newline(out); Loading
fs/bcachefs/buckets.c +8 −4 Original line number Diff line number Diff line Loading @@ -71,7 +71,9 @@ bch2_fs_usage_read_short(struct bch_fs *c) return ret; } void bch2_dev_usage_to_text(struct printbuf *out, struct bch_dev_usage *usage) void bch2_dev_usage_to_text(struct printbuf *out, struct bch_dev *ca, struct bch_dev_usage *usage) { prt_printf(out, "\tbuckets\rsectors\rfragmented\r\n"); Loading @@ -82,6 +84,8 @@ void bch2_dev_usage_to_text(struct printbuf *out, struct bch_dev_usage *usage) usage->d[i].sectors, usage->d[i].fragmented); } prt_printf(out, "capacity\t%llu\r\n", ca->mi.nbuckets); } static int bch2_check_fix_ptr(struct btree_trans *trans, Loading
fs/bcachefs/buckets.h +1 −1 Original line number Diff line number Diff line Loading @@ -212,7 +212,7 @@ static inline struct bch_dev_usage bch2_dev_usage_read(struct bch_dev *ca) return ret; } void bch2_dev_usage_to_text(struct printbuf *, struct bch_dev_usage *); void bch2_dev_usage_to_text(struct printbuf *, struct bch_dev *, struct bch_dev_usage *); static inline u64 bch2_dev_buckets_reserved(struct bch_dev *ca, enum bch_watermark watermark) { Loading