From: Akinobu Mita Date: Wed, 18 Sep 2013 12:27:25 +0000 (+0900) Subject: [SCSI] scsi_debug: factor out copying PI from dif_storep to prot_sglist X-Git-Tag: v3.13-rc1~99^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb8c063c6afcd930b8da944927144f2982609638;p=pandora-kernel.git [SCSI] scsi_debug: factor out copying PI from dif_storep to prot_sglist If data integrity support is enabled, prot_verify_read() is called in response to READ commands and it verifies protection info from dif_storep by comparing against fake_storep, and copies protection info to prot_sglist. This factors out the portion of copying protection info into a separate function. It will also be reused in the next change after supporting the opposite direction (copying prot_sglist to dif_storep). Signed-off-by: Akinobu Mita Acked-by: Martin K. Petersen Signed-off-by: James Bottomley --- Reading git-diff-tree failed