]> git.proxmox.com Git - mirror_zfs-debian.git/blobdiff - module/zfs/dbuf.c
New upstream version 0.7.6
[mirror_zfs-debian.git] / module / zfs / dbuf.c
index 60f52d29426b369b3df187261775eb80083854e7..4ee121f5a5fbfdcdf0ad0320eb6bf15d43151532 100644 (file)
@@ -2719,8 +2719,10 @@ __dbuf_hold_impl(struct dbuf_hold_impl_data *dh)
                return (SET_ERROR(ENOENT));
        }
 
-       if (dh->dh_db->db_buf != NULL)
+       if (dh->dh_db->db_buf != NULL) {
+               arc_buf_access(dh->dh_db->db_buf);
                ASSERT3P(dh->dh_db->db.db_data, ==, dh->dh_db->db_buf->b_data);
+       }
 
        ASSERT(dh->dh_db->db_buf == NULL || arc_referenced(dh->dh_db->db_buf));