From: Toke Høiland-Jørgensen <toke at toke.dk> Date: Wed, 25 Apr 2018 15:42:48 +0200 > +static void *cake_zalloc(size_t sz) > +{ > + void *ptr = kzalloc(sz, GFP_KERNEL | __GFP_NOWARN); > + > + if (!ptr) > + ptr = vzalloc(sz); > + return ptr; > +} This is just kvzalloc(sz, GFP_KERNEL | __GFP_NOWARN)?