mirror_zfs/module
Ryan Moeller 85703f616d
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
2020-11-18 15:06:59 -08:00
..
avl Links in Source Files 2020-09-02 09:42:12 -07:00
icp Introduce CPU_SEQID_UNSTABLE 2020-11-02 11:51:12 -08:00
lua Use known license string for zlua 2020-10-27 09:43:36 -07:00
nvpair Links in Source Files 2020-09-02 09:42:12 -07:00
os Fix problems in zvol_set_volmode_impl 2020-11-17 09:50:52 -08:00
spl Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
unicode Throw const on some strings 2020-10-02 17:44:10 -07:00
zcommon Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
zfs Reduce confusion in zfs_write 2020-11-18 15:06:59 -08:00
zstd Optimize locking checks in mempool allocator 2020-11-02 12:10:07 -08:00
.gitignore Cleanup linux module kbuild files 2020-06-10 09:24:15 -07:00
Kbuild.in Add zstd support to zfs 2020-08-20 10:30:06 -07:00
Makefile.bsd Distributed Spare (dRAID) Feature 2020-11-13 13:51:51 -08:00
Makefile.in Fix Linux modules uninstall 2020-10-08 20:07:10 -07:00