* vm_page_remove: * * Removes the specified page from its containing object, but does not * invalidate any backing storage. Returns true if the object's reference * was the last reference to the page, and false otherwise. * * The object must be locked and the page must be exclusively busied. * The exclusive busy will be released on return. If this is not the * final ref and the caller do
| 1658 | * continue to access the page. |
| 1659 | */ |
| 1660 | bool |
| 1661 | vm_page_remove(vm_page_t m) |
| 1662 | { |
| 1663 | bool dropped; |
| 1664 | |
| 1665 | dropped = vm_page_remove_xbusy(m); |
| 1666 | vm_page_xunbusy(m); |
| 1667 | |
| 1668 | return (dropped); |
| 1669 | } |
| 1670 | |
| 1671 | /* |
| 1672 | * vm_page_remove_xbusy |
no test coverage detected