mirror of
https://review.haiku-os.org/haiku
synced 2025-02-23 14:08:15 +01:00
The previous logic of _AddTrim plus _TrimNext meant that if a trim range was specified in the final call to _TrimNext (i.e. with force=true), but the trim buffer was already full at that point, that last range would not actually be trimmed. Now, _AddTrim returns true when the buffer is filled and trimming should be done, rather than delaying it and requiring a second add after trimming. Change-Id: I4b782948e8dc9267c63e61bce0c078fd4e834177 Reviewed-on: https://review.haiku-os.org/c/haiku/+/6070 Tested-by: Automation <automation@haiku-os.org> Reviewed-by: waddlesplash <waddlesplash@gmail.com>