Skip to content
Snippets Groups Projects
Commit 65b98d18 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

core: incompatible: buffer->alloc_block must allocate the control


This is an incompatible change for buffer authors. We don't think
there are any out-of-tree buffers, though.  The allocation
function must allocate the control by itself, instead of
receiving it from outside.  The reason why the control was passed
doesn't hold any more, and the upcoming PF_ZIO buffer will
greatly benefit from this.

Also, now alloc_block returns NULL on error, so it can be used directly
by the caller (it used to be ERR_PTR).

Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
Acked-by: default avatarFederico Vaga <federico.vaga@gmail.com>
parent a23ab0e5
Branches
Tags
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment