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
1 changed files with 2 additions and 0 deletions

View File

@ -295,6 +295,8 @@ void arc_buf_freeze(arc_buf_t *buf);
void arc_buf_thaw(arc_buf_t *buf); void arc_buf_thaw(arc_buf_t *buf);
#ifdef ZFS_DEBUG #ifdef ZFS_DEBUG
int arc_referenced(arc_buf_t *buf); int arc_referenced(arc_buf_t *buf);
#else
#define arc_referenced(buf) ((void) sizeof (buf), 0)
#endif #endif
int arc_read(zio_t *pio, spa_t *spa, const blkptr_t *bp, int arc_read(zio_t *pio, spa_t *spa, const blkptr_t *bp,