| 3654 | #define CACHE_FPL_FAILED -2020 |
| 3655 | |
| 3656 | void |
| 3657 | cache_fast_lookup_enabled_recalc(void) |
| 3658 | { |
| 3659 | int lookup_flag; |
| 3660 | int mac_on; |
| 3661 | |
| 3662 | #ifdef MAC |
| 3663 | mac_on = mac_vnode_check_lookup_enabled(); |
| 3664 | mac_on |= mac_vnode_check_readlink_enabled(); |
| 3665 | #else |
| 3666 | mac_on = 0; |
| 3667 | #endif |
| 3668 | |
| 3669 | lookup_flag = atomic_load_int(&cache_fast_lookup); |
| 3670 | if (lookup_flag && !mac_on) { |
| 3671 | atomic_store_char(&cache_fast_lookup_enabled, true); |
| 3672 | } else { |
| 3673 | atomic_store_char(&cache_fast_lookup_enabled, false); |
| 3674 | } |
| 3675 | } |
| 3676 | |
| 3677 | static int |
| 3678 | syscal_vfs_cache_fast_lookup(SYSCTL_HANDLER_ARGS) |
no outgoing calls
no test coverage detected