Skip to content

Commit 0c763f7

Browse files
authored
Remove unused check from dmu_tx_count_write()
Individual transactions may not be larger than DMU_MAX_ACCESS. This is enforced by the assertions in dmu_tx_hold_write() and dmu_tx_hold_write_by_dnode(). There's an additional check in dmu_tx_count_write() however it has no effect and only sets a local err variable. We could enable this check, however since it's already enforced by ASSERTs elsewhere I opted to remove it instead. Reviewed-by: Matthew Ahrens <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #3731 Closes #11384
1 parent af95939 commit 0c763f7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

module/zfs/dmu_tx.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,6 @@ dmu_tx_count_write(dmu_tx_hold_t *txh, uint64_t off, uint64_t len)
230230

231231
(void) zfs_refcount_add_many(&txh->txh_space_towrite, len, FTAG);
232232

233-
if (zfs_refcount_count(&txh->txh_space_towrite) > 2 * DMU_MAX_ACCESS)
234-
err = SET_ERROR(EFBIG);
235-
236233
if (dn == NULL)
237234
return;
238235

0 commit comments

Comments
 (0)