> Thank you all for the input. Allocatig the bitmap via malloc() really > seems like the way to go, so we don't waste space for non-cloning > devices. See updated patch below. > > Would it make sense to move the (rdev == VCHR && ...) condition to a > macro in <sys/specdev.h>? I figured it's only used twice, so I inlined > it. > > Comments/Ok?
You can get rid of the `clonable VCHR device' test in vgonel() and call free() v_specbitmap unconditionally.
