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:Alessandro Rubini <rubini@gnudd.com> Acked-by:
Federico Vaga <federico.vaga@gmail.com>
Showing
- Documentation/zio/buffer.txt 4 additions, 3 deletionsDocumentation/zio/buffer.txt
- buffers/zio-buf-kmalloc.c 5 additions, 5 deletionsbuffers/zio-buf-kmalloc.c
- buffers/zio-buf-vmalloc.c 9 additions, 11 deletionsbuffers/zio-buf-vmalloc.c
- doc/zio-manual.in 6 additions, 3 deletionsdoc/zio-manual.in
- include/linux/zio-buffer.h 5 additions, 2 deletionsinclude/linux/zio-buffer.h
- zio-cdev.c 6 additions, 14 deletionszio-cdev.c
- zio-sys.c 9 additions, 21 deletionszio-sys.c
Please register or sign in to comment