commit | 03b5929ebb20457e2fd13a701954efa2b2fb7ded | [log] [tgz] |
---|---|---|
author | Ming Lin <ming.l@ssi.samsung.com> | Tue Mar 22 00:24:45 2016 -0700 |
committer | Jens Axboe <axboe@fb.com> | Tue Apr 12 13:44:00 2016 -0600 |
tree | 713f9e78c17354d097500c365f66342d09351115 | |
parent | 58b45602751ddf16e57170656670aa5a8f78eeca [diff] |
nvme: rewrite discard support This rewrites nvme_setup_discard() with blk_add_request_payload(). It allocates only the necessary amount(16 bytes) for the payload. Signed-off-by: Ming Lin <ming.l@ssi.samsung.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@fb.com>