mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
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
This commit is contained in:
committed by
Brian Behlendorf
parent
bd8c6bd66f
commit
d0d91f185e
+1
-5
@@ -2173,7 +2173,7 @@ restart:
|
||||
|
||||
int
|
||||
dmu_read_l0_bps(objset_t *os, uint64_t object, uint64_t offset, uint64_t length,
|
||||
dmu_tx_t *tx, blkptr_t *bps, size_t *nbpsp)
|
||||
blkptr_t *bps, size_t *nbpsp)
|
||||
{
|
||||
dmu_buf_t **dbp, *dbuf;
|
||||
dmu_buf_impl_t *db;
|
||||
@@ -2235,10 +2235,6 @@ dmu_read_l0_bps(objset_t *os, uint64_t object, uint64_t offset, uint64_t length,
|
||||
error = SET_ERROR(EAGAIN);
|
||||
goto out;
|
||||
}
|
||||
if (dmu_buf_is_dirty(dbuf, tx)) {
|
||||
error = SET_ERROR(EAGAIN);
|
||||
goto out;
|
||||
}
|
||||
/*
|
||||
* Make sure we clone only data blocks.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user