nvme: factor metadata handling out of __nvme_submit_user_cmd
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Aug 2017 21:46:01 +0000 (17:46 -0400)
committerChristoph Hellwig <hch@lst.de>
Wed, 30 Aug 2017 12:59:30 +0000 (14:59 +0200)
commit1cad65620fecfb24cdeefa5533628a4f293783e7
tree6bac6bc6da283847e3beeaf2db4a1d6d378e0ee9
parent489beb91e66a237254e23ac1a0fe1beac23d87c5
nvme: factor metadata handling out of __nvme_submit_user_cmd

Keep the metadata code in a separate helper instead of making the
main function more complicated.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c