Skip to content

Commit

Permalink
add function to determine if a buffer can be recycled within the ARC
Browse files Browse the repository at this point in the history
  • Loading branch information
kmacy committed Dec 21, 2009
1 parent 90d2186 commit 9f14661
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zio.h
Expand Up @@ -420,6 +420,14 @@ extern int zio_handle_fault_injection(zio_t *zio, int error);
extern int zio_handle_device_injection(vdev_t *vd, int error);
extern int zio_handle_label_injection(zio_t *zio, int error);


static __inline int
zio_recycleable(int64_t size)
{

return ((size > 0) && (size & PAGE_MASK));
}

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 9f14661

Please sign in to comment.