File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1703,6 +1703,7 @@ static int ec_new_stripe_alloc(struct bch_fs *c, struct ec_stripe_head *h)
1703
1703
h -> blocksize , h -> disk_label );
1704
1704
1705
1705
h -> s = s ;
1706
+ h -> nr_created ++ ;
1706
1707
return 0 ;
1707
1708
}
1708
1709
@@ -2278,9 +2279,10 @@ void bch2_new_stripes_to_text(struct printbuf *out, struct bch_fs *c)
2278
2279
2279
2280
mutex_lock (& c -> ec_stripe_head_lock );
2280
2281
list_for_each_entry (h , & c -> ec_stripe_head_list , list ) {
2281
- prt_printf (out , "disk label %u algo %u redundancy %u %s:\n" ,
2282
+ prt_printf (out , "disk label %u algo %u redundancy %u %s nr created %llu :\n" ,
2282
2283
h -> disk_label , h -> algo , h -> redundancy ,
2283
- bch2_watermarks [h -> watermark ]);
2284
+ bch2_watermarks [h -> watermark ],
2285
+ h -> nr_created );
2284
2286
2285
2287
if (h -> s )
2286
2288
bch2_new_stripe_to_text (out , c , h -> s );
Original file line number Diff line number Diff line change @@ -193,6 +193,8 @@ struct ec_stripe_head {
193
193
unsigned redundancy ;
194
194
enum bch_watermark watermark ;
195
195
196
+ u64 nr_created ;
197
+
196
198
struct bch_devs_mask devs ;
197
199
unsigned nr_active_devs ;
198
200
You can’t perform that action at this time.
0 commit comments