bcachefs: Call bch2_bkey_set_needs_rebalance() earlier in write path
authorKent Overstreet <kent.overstreet@linux.dev>
Fri, 16 May 2025 20:45:44 +0000 (16:45 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:15:07 +0000 (20:15 -0400)
commitc631bb41f5a9cf266762290166a00132a04f215d
treea6848146bae6b142c4444c08cf3cca4d64873ccc
parentf132a78095b6a67f717657a09640539cb847d2d6
bcachefs: Call bch2_bkey_set_needs_rebalance() earlier in write path

There's no reason to be running this inside our transaction; it forces
us to copy the key we're updating to a temporary, which we'd like to
skip.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/io_write.c