Re: [PATCH 13/23] btrfs: add the data transaction commit logic into may_commit_transaction

David Sterba
2020-08-13T16:36:26Z

On Tue, Jul 21, 2020 at 10:22:24AM -0400, Josef Bacik wrote:
> - bytes_needed = (ticket) ? ticket->bytes : 0;
> + bytes_needed = (ticket) ? ticket->bytes : bytes_needed;

I'd rather write that as

if (ticket)
bytes_needed = ticket->bytes;