Skip to content

Commit

Permalink
swap_pager: Transfer CHERI tags if the fast pass works
Browse files Browse the repository at this point in the history
This was a mismerge in commit 73c9044.
  • Loading branch information
bsdjhb committed Dec 20, 2024
1 parent 1ded2f4 commit a781631
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sys/vm/swap_pager.c
Original file line number Diff line number Diff line change
Expand Up @@ -2393,12 +2393,12 @@ swp_pager_meta_transfer(vm_object_t srcobject, vm_object_t dstobject,
swp_pager_meta_build(dstobject,
sb->p + i - offset, sb->d[i], false);
VM_OBJECT_WLOCK(srcobject);
#if __has_feature(capabilities)
swp_pager_cheri_xfer_tags(dstobject,
sb->p + i - offset, sb, i);
#endif
} else if (blk != SWAPBLK_NONE)
swp_pager_update_freerange(&range, sb->d[i]);
#if __has_feature(capabilities)
swp_pager_cheri_xfer_tags(dstobject,
sb->p + i - offset, sb, i);
#endif
sb->d[i] = SWAPBLK_NONE;
}
pindex = sb->p + SWAP_META_PAGES;
Expand Down

0 comments on commit a781631

Please sign in to comment.