UBI: Add initial support for scatter gather
authorRichard Weinberger <richard@nod.at>
Sat, 10 Jan 2015 21:52:13 +0000 (22:52 +0100)
committerRichard Weinberger <richard@nod.at>
Wed, 28 Jan 2015 15:04:26 +0000 (16:04 +0100)
Adds a new set of functions to deal with scatter gather.
ubi_eba_read_leb_sg() will read from a LEB into a scatter gather list.
The new data structure struct ubi_sgl will be used within UBI to
hold the scatter gather list itself and metadata to have a cursor
within the list.

Signed-off-by: Richard Weinberger <richard@nod.at>
Tested-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Reviewed-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
drivers/mtd/ubi/eba.c
drivers/mtd/ubi/kapi.c
drivers/mtd/ubi/ubi.h
include/linux/mtd/ubi.h

Simple merge
Simple merge
Simple merge
Simple merge