| 3675 | } |
| 3676 | |
| 3677 | static int |
| 3678 | syscal_vfs_cache_fast_lookup(SYSCTL_HANDLER_ARGS) |
| 3679 | { |
| 3680 | int error, old; |
| 3681 | |
| 3682 | old = atomic_load_int(&cache_fast_lookup); |
| 3683 | error = sysctl_handle_int(oidp, arg1, arg2, req); |
| 3684 | if (error == 0 && req->newptr && old != atomic_load_int(&cache_fast_lookup)) |
| 3685 | cache_fast_lookup_enabled_recalc(); |
| 3686 | return (error); |
| 3687 | } |
| 3688 | SYSCTL_PROC(_vfs, OID_AUTO, cache_fast_lookup, CTLTYPE_INT|CTLFLAG_RW|CTLFLAG_MPSAFE, |
| 3689 | &cache_fast_lookup, 0, syscal_vfs_cache_fast_lookup, "IU", ""); |
| 3690 |
nothing calls this directly
no test coverage detected