]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
lib/scatterlist: introduce sg_pcopy_from_buffer() and sg_pcopy_to_buffer()
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 8 Jul 2013 23:01:54 +0000 (16:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:30 +0000 (10:33 -0700)
commitdf642cea25c90dc7d5dcd9d3b480b6b59de7d787
tree947e40ff7e12907461082d88ef390084bb90f915
parent1105200480b4faeb673d1b23658650b003302c06
lib/scatterlist: introduce sg_pcopy_from_buffer() and sg_pcopy_to_buffer()

The only difference between sg_pcopy_{from,to}_buffer() and
sg_copy_{from,to}_buffer() is an additional argument that specifies the
number of bytes to skip the SG list before copying.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: Douglas Gilbert <dgilbert@interlog.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Horia Geanta <horia.geanta@freescale.com>
Cc: Imre Deak <imre.deak@intel.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/scatterlist.h
lib/scatterlist.c