git: DragonFly_RELEASE_6_4 vm: Clean up cdev_pager_allocate() a bit

Aaron LI aly at crater.dragonflybsd.org
Sat Sep 12 04:16:13 PDT 2026


commit 67824a9d09441035f4710b04c2cff69ea782f7ef
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/67824a9d09441035f4710b04c2cff69ea782f7ef


-- 
DragonFly BSD source repository


More information about the Commits mailing list