Print this page
3525 Persistent L2ARC


 109 zio_t *arc_write(zio_t *pio, spa_t *spa, uint64_t txg,
 110     blkptr_t *bp, arc_buf_t *buf, boolean_t l2arc, boolean_t l2arc_compress,
 111     const zio_prop_t *zp, arc_done_func_t *ready, arc_done_func_t *done,
 112     void *private, int priority, int zio_flags, const zbookmark_t *zb);
 113 void arc_freed(spa_t *spa, const blkptr_t *bp);
 114 
 115 void arc_set_callback(arc_buf_t *buf, arc_evict_func_t *func, void *private);
 116 int arc_buf_evict(arc_buf_t *buf);
 117 
 118 void arc_flush(spa_t *spa);
 119 void arc_tempreserve_clear(uint64_t reserve);
 120 int arc_tempreserve_space(uint64_t reserve, uint64_t txg);
 121 
 122 void arc_init(void);
 123 void arc_fini(void);
 124 
 125 /*
 126  * Level 2 ARC
 127  */
 128 
 129 void l2arc_add_vdev(spa_t *spa, vdev_t *vd);
 130 void l2arc_remove_vdev(vdev_t *vd);
 131 boolean_t l2arc_vdev_present(vdev_t *vd);
 132 void l2arc_init(void);
 133 void l2arc_fini(void);
 134 void l2arc_start(void);
 135 void l2arc_stop(void);
 136 
 137 #ifndef _KERNEL
 138 extern boolean_t arc_watch;
 139 extern int arc_procfd;
 140 #endif
 141 
 142 #ifdef  __cplusplus
 143 }
 144 #endif
 145 
 146 #endif /* _SYS_ARC_H */


 109 zio_t *arc_write(zio_t *pio, spa_t *spa, uint64_t txg,
 110     blkptr_t *bp, arc_buf_t *buf, boolean_t l2arc, boolean_t l2arc_compress,
 111     const zio_prop_t *zp, arc_done_func_t *ready, arc_done_func_t *done,
 112     void *private, int priority, int zio_flags, const zbookmark_t *zb);
 113 void arc_freed(spa_t *spa, const blkptr_t *bp);
 114 
 115 void arc_set_callback(arc_buf_t *buf, arc_evict_func_t *func, void *private);
 116 int arc_buf_evict(arc_buf_t *buf);
 117 
 118 void arc_flush(spa_t *spa);
 119 void arc_tempreserve_clear(uint64_t reserve);
 120 int arc_tempreserve_space(uint64_t reserve, uint64_t txg);
 121 
 122 void arc_init(void);
 123 void arc_fini(void);
 124 
 125 /*
 126  * Level 2 ARC
 127  */
 128 
 129 void l2arc_add_vdev(spa_t *spa, vdev_t *vd, boolean_t rebuild);
 130 void l2arc_remove_vdev(vdev_t *vd);
 131 boolean_t l2arc_vdev_present(vdev_t *vd);
 132 void l2arc_init(void);
 133 void l2arc_fini(void);
 134 void l2arc_start(void);
 135 void l2arc_stop(void);
 136 
 137 #ifndef _KERNEL
 138 extern boolean_t arc_watch;
 139 extern int arc_procfd;
 140 #endif
 141 
 142 #ifdef  __cplusplus
 143 }
 144 #endif
 145 
 146 #endif /* _SYS_ARC_H */