NFS: Only reference user namespace from nfs4idmap struct instead of cred
authorSargun Dhillon <sargun@sargun.me>
Mon, 12 Oct 2020 21:43:39 +0000 (14:43 -0700)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 13 Oct 2020 19:56:54 +0000 (15:56 -0400)
commit61ca2c4afd9d108899e0fa48e7b1cfc9afe80596
tree8f411540d3723a38a7b53c99336fc0f49d25a63c
parenta2d24bcb97dc7b0be1cb891e60ae133bdf36c786
NFS: Only reference user namespace from nfs4idmap struct instead of cred

The nfs4idmapper only needs access to the user namespace, and not the
entire cred struct. This replaces the struct cred* member with
struct user_namespace*. This is mostly hygiene, so we don't have to
hold onto the cred object, which has extraneous references to
things like user_struct. This also makes switching away
from init_user_ns more straightforward in the future.

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4idmap.c