RDMA/restrack: Make is_visible_in_pid_ns() as an API
authorMark Zhang <markz@mellanox.com>
Tue, 2 Jul 2019 10:02:33 +0000 (13:02 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 5 Jul 2019 13:22:54 +0000 (10:22 -0300)
commit6a6c306a09b5227d51fcc1643c888e316935dfa8
tree282245b95175673026c15c6922cfe25c70c2b320
parent699a9c540a04d05aa342cd84606bc8b1e8c05b7b
RDMA/restrack: Make is_visible_in_pid_ns() as an API

Remove is_visible_in_pid_ns() from nldev.c and make it as a restrack API,
so that it can be taken advantage by other parts like counter.

Signed-off-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Majd Dibbiny <majd@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/nldev.c
drivers/infiniband/core/restrack.c
drivers/infiniband/core/restrack.h