git: idr: Simplify idr_grow()

Francois Tigeot ftigeot at crater.dragonflybsd.org
Sun Oct 6 22:35:41 PDT 2013


commit fc33091f7660c59e97c3e41cde1950254d51f565
Author: François Tigeot <ftigeot at wolfpond.org>
Date:   Mon Oct 7 07:33:21 2013 +0200

    idr: Simplify idr_grow()
    
    Make sure to only allocate powers of two descriptor numbers
    and not weird values such as 1027

Summary of changes:
 sys/libkern/idr.c | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/fc33091f7660c59e97c3e41cde1950254d51f565


-- 
DragonFly BSD source repository


More information about the Commits mailing list