]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
lockd: Rename struct nlm_reboot to lockd_reboot
authorChuck Lever <chuck.lever@oracle.com>
Tue, 12 May 2026 18:13:46 +0000 (14:13 -0400)
committerChuck Lever <cel@kernel.org>
Tue, 9 Jun 2026 20:32:59 +0000 (16:32 -0400)
As part of the effort to enable lockd's server-side XDR functions to
be generated from the NLM protocol specification (using xdrgen), the
internal type names must be changed to avoid conflicts with the
machine-generated type names.

Rename struct nlm_reboot to struct lockd_reboot for consistency with
the other renamed internal types.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/host.c
fs/lockd/lockd.h
fs/lockd/mon.c
fs/lockd/svc4proc.c
fs/lockd/svcproc.c
fs/lockd/xdr.c
fs/lockd/xdr.h

index ea8a8e166f7e4eee0ecd508ef97dd12eba919ca7..d572cb27533f0fd8b1dab383d52b36f51d1ad159 100644 (file)
@@ -552,7 +552,7 @@ struct nlm_host * nlm_get_host(struct nlm_host *host)
 
 static struct nlm_host *next_host_state(struct hlist_head *cache,
                                        struct nsm_handle *nsm,
-                                       const struct nlm_reboot *info)
+                                       const struct lockd_reboot *info)
 {
        struct nlm_host *host;
        struct hlist_head *chain;
@@ -582,7 +582,7 @@ static struct nlm_host *next_host_state(struct hlist_head *cache,
  * We were notified that the specified host has rebooted.  Release
  * all resources held by that peer.
  */
-void nlm_host_rebooted(const struct net *net, const struct nlm_reboot *info)
+void nlm_host_rebooted(const struct net *net, const struct lockd_reboot *info)
 {
        struct nsm_handle *nsm;
        struct nlm_host *host;
index 4054e97723d85c0fae2dbef2a7944e4c10282790..ca389525a17070ee1d1d85f42babdad678537814 100644 (file)
@@ -285,7 +285,7 @@ struct nlm_host * nlm_get_host(struct nlm_host *);
 void             nlm_shutdown_hosts(void);
 void             nlm_shutdown_hosts_net(struct net *net);
 void             nlm_host_rebooted(const struct net *net,
-                                       const struct nlm_reboot *);
+                                       const struct lockd_reboot *);
 
 /*
  * Host monitoring
@@ -299,7 +299,7 @@ struct nsm_handle *nsm_get_handle(const struct net *net,
                                        const char *hostname,
                                        const size_t hostname_len);
 struct nsm_handle *nsm_reboot_lookup(const struct net *net,
-                                       const struct nlm_reboot *info);
+                                       const struct lockd_reboot *info);
 void             nsm_release(struct nsm_handle *nsm);
 
 /*
index 3d3ee88ca4dc298638efb83c243f9aac3abee7e2..a8f5ac6f057748c78378f1c26897c308b365c5b3 100644 (file)
@@ -377,7 +377,7 @@ retry:
  * error occurred.
  */
 struct nsm_handle *nsm_reboot_lookup(const struct net *net,
-                               const struct nlm_reboot *info)
+                               const struct lockd_reboot *info)
 {
        struct nsm_handle *cached;
        struct lockd_net *ln = net_generic(net, lockd_net_id);
index 1682a7c91a78e5a2c317a2d95aaaa7d474150dca..997f4f437997f32937800f28048fb3edc0cbb949 100644 (file)
@@ -61,7 +61,7 @@ static_assert(offsetof(struct nlm4_unlockargs_wrapper, xdrgen) == 0);
 
 struct nlm4_notifyargs_wrapper {
        struct nlm4_notifyargs          xdrgen;
-       struct nlm_reboot               reboot;
+       struct lockd_reboot             reboot;
 };
 
 static_assert(offsetof(struct nlm4_notifyargs_wrapper, xdrgen) == 0);
@@ -918,7 +918,7 @@ static __be32 nlm4svc_proc_granted_res(struct svc_rqst *rqstp)
 static __be32 nlm4svc_proc_sm_notify(struct svc_rqst *rqstp)
 {
        struct nlm4_notifyargs_wrapper *argp = rqstp->rq_argp;
-       struct nlm_reboot *reboot = &argp->reboot;
+       struct lockd_reboot *reboot = &argp->reboot;
 
        if (!nlm_privileged_requester(rqstp)) {
                char buf[RPC_MAX_ADDRBUFLEN];
index e033320b840f094d31479d6b2bd9530aefac1edd..a79c9a46db600a5e0ebd77d184c4c79084cac552 100644 (file)
@@ -518,7 +518,7 @@ nlmsvc_proc_free_all(struct svc_rqst *rqstp)
 static __be32
 nlmsvc_proc_sm_notify(struct svc_rqst *rqstp)
 {
-       struct nlm_reboot *argp = rqstp->rq_argp;
+       struct lockd_reboot *argp = rqstp->rq_argp;
 
        dprintk("lockd: SM_NOTIFY     called\n");
 
@@ -732,8 +732,8 @@ static const struct svc_procedure nlmsvc_procedures[24] = {
                .pc_func = nlmsvc_proc_sm_notify,
                .pc_decode = nlmsvc_decode_reboot,
                .pc_encode = nlmsvc_encode_void,
-               .pc_argsize = sizeof(struct nlm_reboot),
-               .pc_argzero = sizeof(struct nlm_reboot),
+               .pc_argsize = sizeof(struct lockd_reboot),
+               .pc_argzero = sizeof(struct lockd_reboot),
                .pc_ressize = sizeof(struct nlm_void),
                .pc_xdrressize = St,
                .pc_name = "SM_NOTIFY",
@@ -816,7 +816,7 @@ static const struct svc_procedure nlmsvc_procedures[24] = {
 union nlmsvc_xdrstore {
        struct lockd_args               args;
        struct lockd_res                res;
-       struct nlm_reboot               reboot;
+       struct lockd_reboot             reboot;
 };
 
 /*
index bcf65152a436010cfefcd48f68f160834a2d0612..c78c64557feaaf0f5e6bac0bab1beeae2e9fd2c6 100644 (file)
@@ -244,7 +244,7 @@ nlmsvc_decode_res(struct svc_rqst *rqstp, struct xdr_stream *xdr)
 bool
 nlmsvc_decode_reboot(struct svc_rqst *rqstp, struct xdr_stream *xdr)
 {
-       struct nlm_reboot *argp = rqstp->rq_argp;
+       struct lockd_reboot *argp = rqstp->rq_argp;
        __be32 *p;
        u32 len;
 
index a480df7cae316c890bcea94deabcc0784871ae66..65d2d6d34310e7d1b30a1d9c981255471ba44aae 100644 (file)
@@ -80,7 +80,7 @@ struct lockd_res {
 /*
  * statd callback when client has rebooted
  */
-struct nlm_reboot {
+struct lockd_reboot {
        char                    *mon;
        unsigned int            len;
        u32                     state;