mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-26 10:53:39 +01:00
swap_pager: fix seek_hole assert
Moving code from tmpfs to swap_pager introduced another WLOCKED object assert that should have been an RLOCKED object assert. Fix it.
This commit is contained in:
parent
02e85d1c8a
commit
faa9356f97
@ -2524,7 +2524,7 @@ swap_pager_seek_hole(vm_object_t object, vm_pindex_t pindex)
|
||||
struct swblk *sb;
|
||||
vm_page_t m;
|
||||
|
||||
VM_OBJECT_ASSERT_WLOCKED(object);
|
||||
VM_OBJECT_ASSERT_RLOCKED(object);
|
||||
vm_page_iter_init(&pages, object);
|
||||
swblk_iter_init_only(&blks, object);
|
||||
while (((m = vm_page_iter_lookup(&pages, pindex)) != NULL &&
|
||||
|
Loading…
Reference in New Issue
Block a user