From: Martin K. Petersen Date: Tue, 18 Sep 2012 16:19:27 +0000 (-0400) Subject: block: Implement support for WRITE SAME X-Git-Tag: v3.7-rc1~54^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4363ac7c13a9a4b763c6e8d9fdbfc2468f3b8ca4;p=pandora-kernel.git block: Implement support for WRITE SAME The WRITE SAME command supported on some SCSI devices allows the same block to be efficiently replicated throughout a block range. Only a single logical block is transferred from the host and the storage device writes the same data to all blocks described by the I/O. This patch implements support for WRITE SAME in the block layer. The blkdev_issue_write_same() function can be used by filesystems and block drivers to replicate a buffer across a block range. This can be used to efficiently initialize software RAID devices, etc. Signed-off-by: Martin K. Petersen Acked-by: Mike Snitzer Signed-off-by: Jens Axboe --- Reading git-diff-tree failed