]> git.baikalelectronics.ru Git - kernel.git/commit
dm io: discards don't take a payload
authorChristoph Hellwig <hch@lst.de>
Wed, 5 Apr 2017 17:21:04 +0000 (19:21 +0200)
committerJens Axboe <axboe@fb.com>
Sat, 8 Apr 2017 17:25:38 +0000 (11:25 -0600)
commit4ed46ebb3cee98ed2cc9340f8087c1902d9e8f31
treeaa5dc525cfa91d3758d8cabc5de2edcfc077af34
parentdd07e6720ae3fc209da151232fa9fd560915f0cf
dm io: discards don't take a payload

Fix up do_region to not allocate a bio_vec for discards.  We've
got rid of the discard payload allocated by the caller years ago.

Obviously this wasn't actually harmful given how long it's been
there, but it's still good to avoid the pointless allocation.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/md/dm-io.c