Skip to content

Commit

Permalink
include: sys/arc.h: shim out arc_referenced()
Browse files Browse the repository at this point in the history
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes openzfs#12844
  • Loading branch information
nabijaczleweli authored and nicman23 committed Aug 22, 2022
1 parent 39b3d6b commit 94bb89e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/sys/arc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 94bb89e

Please sign in to comment.