[PATCH 6.6.x] btrfs: add cancellation points to trim loops