mirror of
				https://git.proxmox.com/git/mirror_zfs.git
				synced 2025-10-26 18:05:04 +03:00 
			
		
		
		
	BRT: Don't call brt_pending_remove() on holes/embedded
We are doing exactly the same checks around all brt_pending_add(). Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Pawel Jakub Dawidek <pjd@FreeBSD.org> Reviewed-by: Brian Atkinson <batkinson@lanl.gov> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #16740
This commit is contained in:
		
							parent
							
								
									483087b06f
								
							
						
					
					
						commit
						1ee251bdde
					
				| @ -2578,8 +2578,11 @@ dbuf_undirty(dmu_buf_impl_t *db, dmu_tx_t *tx) | ||||
| 		 * We are freeing a block that we cloned in the same | ||||
| 		 * transaction group. | ||||
| 		 */ | ||||
| 		brt_pending_remove(dmu_objset_spa(db->db_objset), | ||||
| 		    &dr->dt.dl.dr_overridden_by, tx); | ||||
| 		blkptr_t *bp = &dr->dt.dl.dr_overridden_by; | ||||
| 		if (!BP_IS_HOLE(bp) && !BP_IS_EMBEDDED(bp)) { | ||||
| 			brt_pending_remove(dmu_objset_spa(db->db_objset), | ||||
| 			    bp, tx); | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	dnode_t *dn = dr->dr_dnode; | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Alexander Motin
						Alexander Motin