Files
linux/fs/bcachefs
Kent Overstreet 4be214c269 bcachefs: bch2_bkey_sectors_need_rebalance() now only depends on bch_extent_rebalance
Previously, bch2_bkey_sectors_need_rebalance() called
bch2_target_accepts_data(), checking whether the target is writable.

However, this means that adding or removing devices from a target would
change the value of bch2_bkey_sectors_need_rebalance() for an existing
extent; this needs to be invariant so that the extent trigger can
correctly maintain rebalance_work accounting.

Instead, check target_accepts_data() in io_opts_to_rebalance_opts(),
before creating the bch_extent_rebalance entry.

This fixes (one?) cause of rebalance_work accounting being off.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2025-02-06 22:35:11 -05:00
..
2024-08-08 15:14:02 -04:00
2024-12-21 01:36:15 -05:00
2024-12-21 01:36:20 -05:00
2024-09-09 09:41:49 -04:00
2025-01-09 23:38:41 -05:00
2025-01-09 23:38:41 -05:00
2025-01-09 23:38:42 -05:00
2024-12-29 13:30:39 -05:00
2025-01-09 23:38:41 -05:00
2024-12-21 01:36:16 -05:00
2025-01-25 19:37:43 -05:00
2024-01-21 13:27:10 -05:00
2024-09-21 11:39:48 -04:00
2024-12-21 01:36:20 -05:00
2024-12-21 01:36:21 -05:00
2024-03-13 18:39:12 -04:00
2024-12-21 01:36:21 -05:00
2025-01-09 23:38:41 -05:00
2024-12-21 01:36:22 -05:00
2024-12-21 01:36:21 -05:00
2024-07-14 19:00:16 -04:00
2024-12-21 01:36:20 -05:00
2024-12-21 01:36:20 -05:00
2024-12-21 01:36:22 -05:00
2024-12-21 01:36:16 -05:00
2025-01-26 23:02:28 -05:00
2024-01-21 13:27:10 -05:00
2024-12-21 01:36:20 -05:00
2024-12-21 01:36:20 -05:00
2024-05-08 17:29:19 -04:00
2024-09-21 11:39:48 -04:00
2024-06-23 00:57:21 -04:00
2024-01-21 13:27:10 -05:00
2024-12-29 13:30:39 -05:00
2024-05-08 17:29:19 -04:00
2024-12-29 13:30:39 -05:00
2024-09-09 09:41:49 -04:00
2024-09-09 09:41:49 -04:00
2024-12-21 01:36:20 -05:00
2024-12-21 01:36:20 -05:00