RDMA/uverbs: Use uverbs_request() and core for write_ex handlers
authorJason Gunthorpe <jgg@mellanox.com>
Sun, 25 Nov 2018 18:58:39 +0000 (20:58 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Dec 2018 17:01:58 +0000 (12:01 -0500)
commit29a29d18523235e749916a0154435f26f3238639
tree0984f76e2f6bd563e42a10867f6d5c1255366d24
parent3c2c20947ddbb897a1459f149509ac03e35043e1
RDMA/uverbs: Use uverbs_request() and core for write_ex handlers

The write_ex handlers have this horrible boilerplate in every function to
do the zero extend/zero check and min size checks. This is now handled in
the core code via the meta-data, and the zero checks are handled by
uverbs_request(). Replace all the occurrences.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_cmd.c