* Returns the given page's successor (by pindex) within the object if it is * resident; if none is found, NULL is returned. * * The object must be locked. */
| 1789 | * The object must be locked. |
| 1790 | */ |
| 1791 | vm_page_t |
| 1792 | vm_page_next(vm_page_t m) |
| 1793 | { |
| 1794 | vm_page_t next; |
| 1795 | |
| 1796 | VM_OBJECT_ASSERT_LOCKED(m->object); |
| 1797 | if ((next = TAILQ_NEXT(m, listq)) != NULL) { |
| 1798 | MPASS(next->object == m->object); |
| 1799 | if (next->pindex != m->pindex + 1) |
| 1800 | next = NULL; |
| 1801 | } |
| 1802 | return (next); |
| 1803 | } |
| 1804 | |
| 1805 | /* |
| 1806 | * Returns the given page's predecessor (by pindex) within the object if it is |
no outgoing calls
no test coverage detected