From b49a0871be31a745b2ef7912653683a1876ff701 Mon Sep 17 00:00:00 2001 From: Ming Lin Date: Fri, 22 May 2015 00:46:56 -0700 Subject: [PATCH] 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-format-patch failed