* vm_page_tryacquire * * Helper routine for grab functions to trylock busy and wire. * * Returns true on success and false on failure. */
| 853 | * Returns true on success and false on failure. |
| 854 | */ |
| 855 | static inline bool |
| 856 | vm_page_tryacquire(vm_page_t m, int allocflags) |
| 857 | { |
| 858 | bool locked; |
| 859 | |
| 860 | locked = vm_page_trybusy(m, allocflags); |
| 861 | if (locked && (allocflags & VM_ALLOC_WIRED) != 0) |
| 862 | vm_page_wire(m); |
| 863 | return (locked); |
| 864 | } |
| 865 | |
| 866 | /* |
| 867 | * vm_page_busy_acquire: |
no test coverage detected