HomeFreeBSD

Reduce confusion in zfs_write

Description

Reduce confusion in zfs_write

Is this block when abuf != NULL ever reached? Yes, it is.

Add asserts and comments to prove that when we get here, we have a full
block write at an aligned offset extending past EOF.

Simplify by removing the check that tx_bytes == max_blksz, since we can
assert that it is always true.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ryan Moeller <ryan@iXsystems.com>
Closes #11191

Details

Provenance
freqlabsAuthored on Nov 18 2020, 11:06 PM
GitHub <noreply@github.com>Committed on Nov 18 2020, 11:06 PM
Parents
rG0ca45cb31092: Fix problems in zvol_set_volmode_impl
Branches
Unknown
Tags
Unknown