.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * linux/fs/lockd/clntlock.c |
---|
3 | 4 | * |
---|
.. | .. |
---|
56 | 57 | u32 nlm_version = (nlm_init->nfs_version == 2) ? 1 : 4; |
---|
57 | 58 | int status; |
---|
58 | 59 | |
---|
59 | | - status = lockd_up(nlm_init->net); |
---|
| 60 | + status = lockd_up(nlm_init->net, nlm_init->cred); |
---|
60 | 61 | if (status < 0) |
---|
61 | 62 | return ERR_PTR(status); |
---|
62 | 63 | |
---|
63 | 64 | host = nlmclnt_lookup_host(nlm_init->address, nlm_init->addrlen, |
---|
64 | 65 | nlm_init->protocol, nlm_version, |
---|
65 | 66 | nlm_init->hostname, nlm_init->noresvport, |
---|
66 | | - nlm_init->net); |
---|
| 67 | + nlm_init->net, nlm_init->cred); |
---|
67 | 68 | if (host == NULL) |
---|
68 | 69 | goto out_nohost; |
---|
69 | 70 | if (host->h_rpcclnt == NULL && nlm_bind_host(host) == NULL) |
---|
.. | .. |
---|
241 | 242 | allow_signal(SIGKILL); |
---|
242 | 243 | |
---|
243 | 244 | down_write(&host->h_rwsem); |
---|
244 | | - lockd_up(net); /* note: this cannot fail as lockd is already running */ |
---|
| 245 | + lockd_up(net, NULL); /* note: this cannot fail as lockd is already running */ |
---|
245 | 246 | |
---|
246 | 247 | dprintk("lockd: reclaiming locks for host %s\n", host->h_name); |
---|
247 | 248 | |
---|