Skip to content

Commit

Permalink
swap_pager: fix seek_hole assert
Browse files Browse the repository at this point in the history
Moving code from tmpfs to swap_pager introduced another WLOCKED object
assert that should have been an RLOCKED object assert.  Fix it.
  • Loading branch information
Doug Moore authored and Doug Moore committed Oct 24, 2024
1 parent 02e85d1 commit faa9356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/vm/swap_pager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit faa9356

Please sign in to comment.