From: Ming Lin Date: Fri, 22 May 2015 07:46:56 +0000 (-0700) Subject: block: remove split code in blkdev_issue_{discard,write_same} X-Git-Tag: omap-for-v4.3/fixes-rc1~114^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b49a0871be31a745b2ef7912653683a1876ff701;p=pandora-kernel.git block: remove split code in blkdev_issue_{discard,write_same} The split code in blkdev_issue_{discard,write_same} can go away now that any driver that cares does the split. We have to make sure bio size doesn't overflow. For discard, we set max discard sectors to (1<<31)>>9 to ensure it doesn't overflow bi_size and hopefully it is of the proper granularity as long as the granularity is a power of two. Acked-by: Christoph Hellwig Signed-off-by: Ming Lin Signed-off-by: Jens Axboe --- Reading git-diff-tree failed