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)
commit9ff08979e17423f0f691c1d76f35dfec72a5e459
treebba6c2556e642bfae792983766d3f07652f9714c
parent892abde56c1c5a62d49d8b70c73e5d388e74345d
UBI: Add initial support for scatter gather

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