Commit ac7f0d77 authored by Kent Overstreet's avatar Kent Overstreet Committed by Kent Overstreet

bcachefs: ratelimit copygc warning

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent dcf77129
...@@ -223,6 +223,8 @@ ...@@ -223,6 +223,8 @@
printk(KERN_NOTICE bch2_fmt(c, fmt), ##__VA_ARGS__) printk(KERN_NOTICE bch2_fmt(c, fmt), ##__VA_ARGS__)
#define bch_warn(c, fmt, ...) \ #define bch_warn(c, fmt, ...) \
printk(KERN_WARNING bch2_fmt(c, fmt), ##__VA_ARGS__) printk(KERN_WARNING bch2_fmt(c, fmt), ##__VA_ARGS__)
#define bch_warn_ratelimited(c, fmt, ...) \
printk_ratelimited(KERN_WARNING bch2_fmt(c, fmt), ##__VA_ARGS__)
#define bch_err(c, fmt, ...) \ #define bch_err(c, fmt, ...) \
printk(KERN_ERR bch2_fmt(c, fmt), ##__VA_ARGS__) printk(KERN_ERR bch2_fmt(c, fmt), ##__VA_ARGS__)
#define bch_err_ratelimited(c, fmt, ...) \ #define bch_err_ratelimited(c, fmt, ...) \
......
...@@ -209,7 +209,8 @@ static void bch2_copygc(struct bch_fs *c, struct bch_dev *ca) ...@@ -209,7 +209,8 @@ static void bch2_copygc(struct bch_fs *c, struct bch_dev *ca)
up_read(&ca->bucket_lock); up_read(&ca->bucket_lock);
if (sectors_not_moved && !ret) if (sectors_not_moved && !ret)
bch_warn(c, "copygc finished but %llu/%llu sectors, %llu/%llu buckets not moved", bch_warn_ratelimited(c,
"copygc finished but %llu/%llu sectors, %llu/%llu buckets not moved",
sectors_not_moved, sectors_to_move, sectors_not_moved, sectors_to_move,
buckets_not_moved, buckets_to_move); buckets_not_moved, buckets_to_move);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment