* Opportunistic check to see if there is anything to do. */
| 2663 | * Opportunistic check to see if there is anything to do. |
| 2664 | */ |
| 2665 | static bool |
| 2666 | cache_has_entries(struct vnode *vp) |
| 2667 | { |
| 2668 | |
| 2669 | if (LIST_EMPTY(&vp->v_cache_src) && TAILQ_EMPTY(&vp->v_cache_dst) && |
| 2670 | atomic_load_ptr(&vp->v_cache_dd) == NULL) |
| 2671 | return (false); |
| 2672 | return (true); |
| 2673 | } |
| 2674 | |
| 2675 | void |
| 2676 | cache_purge(struct vnode *vp) |
no outgoing calls
no test coverage detected