Created attachment 187952 [details] inline swp_pager_isondev and call from 2 places Improve code reuse.
I created and tested this patch against 11-CURRENT. I only confirmed the patch applies okay on the head.
Created attachment 196119 [details] 2nd patch with style fix Fixed style.
Committed in r340637 https://reviews.freebsd.org/rS340637