From: Mike Snitzer Date: Fri, 21 Dec 2012 20:23:37 +0000 (+0000) Subject: dm: add WRITE SAME support X-Git-Tag: v3.8-rc1~3^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23508a96cd2e857d57044a2ed7d305f2d9daf441;p=pandora-kernel.git dm: add WRITE SAME support WRITE SAME bios have a payload that contain a single page. When cloning WRITE SAME bios DM has no need to modify the bi_io_vec attributes (and doing so would be detrimental). DM need only alter the start and end of the WRITE SAME bio accordingly. Rather than duplicate __clone_and_map_discard, factor out a common function that is also used by __clone_and_map_write_same. Signed-off-by: Mike Snitzer Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed