git: vm: Clean up cdev_pager_allocate() a bit

Aaron LI aly at crater.dragonflybsd.org
Tue Jul 28 05:24:58 PDT 2026


commit 0688f9fec9843cc6b1534b925a581354a6ea7cb0
Author: Aaron LI <aly at aaronly.me>
Date:   Tue Jul 28 19:17:24 2026 +0800

    vm: Clean up cdev_pager_allocate() a bit
    
    * Introduce 'pindex' variable to clean up the code.
    * Add KASSERT() to ensure the object type matches (obtained from FreeBSD)

Summary of changes:
 sys/vm/device_pager.c | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0688f9fec9843cc6b1534b925a581354a6ea7cb0


-- 
DragonFly BSD source repository


More information about the Commits mailing list