git: sys/dev/disk/dm: Don't statically allocate MAX_STRIPES devices

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Sun Nov 1 07:45:33 PST 2015


commit 0d0066184da969032e8df95c13bf2c7eae7f8a3d
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Sun Nov 1 23:42:25 2015 +0900

    sys/dev/disk/dm: Don't statically allocate MAX_STRIPES devices
    
    struct target_stripe_config should have 0 sized array for
    struct target_stripe_dev instead of MAX_STRIPES sized one,
    and kmalloc() whatever size necessary depending on # of
    stripe devices.

Summary of changes:
 sys/dev/disk/dm/targets/striped/dm_target_striped.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0d0066184da969032e8df95c13bf2c7eae7f8a3d


-- 
DragonFly BSD source repository



More information about the Commits mailing list