HomeFreeBSD

Don't use dmu_buf_is_dirty() for unassigned transaction.

Description

Don't use dmu_buf_is_dirty() for unassigned transaction.

The dmu_buf_is_dirty() call doesn't make sense here for two reasons:

  1. txg is 0 for unassigned tx, so it was a no-op.
  2. It is equivalent of checking if we have dirty records and we are doing this few lines earlier.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Pawel Jakub Dawidek <pawel@dawidek.net>
Closes #14825

Details

Provenance
pjdAuthored on May 2 2023, 10:46 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on May 11 2023, 11:06 PM
Parents
rGbd8c6bd66f9d: Deny block cloning is dbuf size doesn't match BP size.
Branches
Unknown
Tags
Unknown