summaryrefslogtreecommitdiffstats
path: root/block/t10-pi.c
diff options
context:
space:
mode:
authorZhou Wang <wangzhou1@hisilicon.com>2019-07-24 05:54:23 +0200
committerJens Axboe <axboe@kernel.dk>2019-08-08 15:45:01 +0200
commit79e178f4383a3a645f76bc2dd44c477b361c6a98 (patch)
treec414e76b0d0eb6bd2d251f8f1f18198bcf5d5bca /block/t10-pi.c
parentlightnvm: remove set but not used variables 'data_len' and 'rq_len' (diff)
downloadlinux-79e178f4383a3a645f76bc2dd44c477b361c6a98.tar.xz
linux-79e178f4383a3a645f76bc2dd44c477b361c6a98.zip
lib: scatterlist: Fix to support no mapped sg
In function sg_split, the second sg_calculate_split will return -EINVAL when in_mapped_nents is 0. Indeed there is no need to do second sg_calculate_split and sg_split_mapped when in_mapped_nents is 0, as in_mapped_nents indicates no mapped entry in original sgl. Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com> Acked-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/t10-pi.c')
0 files changed, 0 insertions, 0 deletions