include: sys/arc.h: shim out arc_referenced()

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12844
This commit is contained in:
наб 2021-12-21 18:37:52 +01:00 committed by Brian Behlendorf
parent 29d033c6b5
commit 83719bd68c

View File

@ -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,