From: FUJITA Tomonori Date: Mon, 17 Mar 2008 15:15:03 +0000 (+0900) Subject: [SCSI] block: add sg buffer copy helper functions X-Git-Tag: v2.6.26-rc1~1140^2~112 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1adaf65ba0398c9a1adc8f3a274533165a4df61;p=pandora-kernel.git [SCSI] block: add sg buffer copy helper functions This patch adds new three helper functions to copy data between an SG list and a linear buffer. - sg_copy_from_buffer copies data from linear buffer to an SG list - sg_copy_to_buffer copies data from an SG list to a linear buffer When the APIs copy data from a linear buffer to an SG list, flush_kernel_dcache_page is called. It's not necessary for everyone but it's a no-op on most architectures and in general the API is not used in performance critical path. Signed-off-by: FUJITA Tomonori Acked-by: Jens Axboe Signed-off-by: James Bottomley --- Reading git-diff-tree failed