From 83719bd68c71d7533b43aac1ee18a711f575145d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Tue, 21 Dec 2021 18:37:52 +0100 Subject: [PATCH] include: sys/arc.h: shim out arc_referenced() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Signed-off-by: Ahelenia ZiemiaƄska Closes #12844 --- include/sys/arc.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/sys/arc.h b/include/sys/arc.h index 9041939e5..4f9bfe48d 100644 --- a/include/sys/arc.h +++ b/include/sys/arc.h @@ -295,6 +295,8 @@ void arc_buf_freeze(arc_buf_t *buf); void arc_buf_thaw(arc_buf_t *buf); #ifdef ZFS_DEBUG int arc_referenced(arc_buf_t *buf); +#else +#define arc_referenced(buf) ((void) sizeof (buf), 0) #endif int arc_read(zio_t *pio, spa_t *spa, const blkptr_t *bp,