diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-10-20 01:40:19 -0400 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-21 01:36:15 -0500 |
| commit | c8908959aead268223baaf17e990a200a085bb5c (patch) | |
| tree | 2cc66702f3bf97d28962830c3d74e78cff57787b /fs/bcachefs/extents.c | |
| parent | bcachefs: small cleanup for extent ptr bitmasks (diff) | |
| download | linux-c8908959aead268223baaf17e990a200a085bb5c.tar.gz linux-c8908959aead268223baaf17e990a200a085bb5c.zip | |
bcachefs: kill bch2_bkey_needs_rebalance()
Dead code
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/extents.c')
| -rw-r--r-- | fs/bcachefs/extents.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/bcachefs/extents.c b/fs/bcachefs/extents.c index 243cb15b74b3..6ad5ff7c8239 100644 --- a/fs/bcachefs/extents.c +++ b/fs/bcachefs/extents.c @@ -1442,23 +1442,6 @@ incompressible: return rewrite_ptrs; } -bool bch2_bkey_needs_rebalance(struct bch_fs *c, struct bkey_s_c k) -{ - const struct bch_extent_rebalance *r = bch2_bkey_rebalance_opts(k); - - /* - * If it's an indirect extent, we don't delete the rebalance entry when - * done so that we know what options were applied - check if it still - * needs work done: - */ - if (r && - k.k->type == KEY_TYPE_reflink_v && - !bch2_bkey_ptrs_need_rebalance(c, k, r->target, r->compression)) - r = NULL; - - return r != NULL; -} - static u64 __bch2_bkey_sectors_need_rebalance(struct bch_fs *c, struct bkey_s_c k, unsigned target, unsigned compression) { |
