mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
lockd: Rename struct nlm_share to lockd_share
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_share to struct lockd_share to avoid conflicts with the NLMv3 XDR type definitions that will be introduced when svcproc.c is converted to use xdrgen. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
c03ded750f
commit
94e8b24e7d
|
|
@ -179,7 +179,7 @@ struct nlm_rqst {
|
|||
void * a_callback_data; /* sent to nlmclnt_operations callbacks */
|
||||
};
|
||||
|
||||
struct nlm_share;
|
||||
struct lockd_share;
|
||||
|
||||
/*
|
||||
* This struct describes a file held open by lockd on behalf of
|
||||
|
|
@ -190,7 +190,7 @@ struct nlm_file {
|
|||
struct nfs_fh f_handle; /* NFS file handle */
|
||||
struct file * f_file[2]; /* VFS file pointers,
|
||||
indexed by O_ flags */
|
||||
struct nlm_share * f_shares; /* DOS shares */
|
||||
struct lockd_share * f_shares; /* DOS shares */
|
||||
struct list_head f_blocks; /* blocked locks */
|
||||
unsigned int f_locks; /* guesstimate # of locks */
|
||||
unsigned int f_count; /* reference count */
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@
|
|||
/*
|
||||
* DOS share for a specific file
|
||||
*/
|
||||
struct nlm_share {
|
||||
struct nlm_share * s_next; /* linked list */
|
||||
struct lockd_share {
|
||||
struct lockd_share * s_next; /* linked list */
|
||||
struct nlm_host * s_host; /* client host */
|
||||
struct nlm_file * s_file; /* shared file */
|
||||
struct xdr_netobj s_owner; /* owner handle */
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
#include "share.h"
|
||||
|
||||
static inline int
|
||||
nlm_cmp_owner(struct nlm_share *share, struct xdr_netobj *oh)
|
||||
nlm_cmp_owner(struct lockd_share *share, struct xdr_netobj *oh)
|
||||
{
|
||||
return share->s_owner.len == oh->len
|
||||
&& !memcmp(share->s_owner.data, oh->data, oh->len);
|
||||
|
|
@ -39,7 +39,7 @@ __be32
|
|||
nlmsvc_share_file(struct nlm_host *host, struct nlm_file *file,
|
||||
struct xdr_netobj *oh, u32 access, u32 mode)
|
||||
{
|
||||
struct nlm_share *share;
|
||||
struct lockd_share *share;
|
||||
u8 *ohdata;
|
||||
|
||||
if (nlmsvc_file_cannot_lock(file))
|
||||
|
|
@ -85,7 +85,7 @@ __be32
|
|||
nlmsvc_unshare_file(struct nlm_host *host, struct nlm_file *file,
|
||||
struct xdr_netobj *oh)
|
||||
{
|
||||
struct nlm_share *share, **shpp;
|
||||
struct lockd_share *share, **shpp;
|
||||
|
||||
if (nlmsvc_file_cannot_lock(file))
|
||||
return nlm_lck_denied_nolocks;
|
||||
|
|
@ -111,7 +111,7 @@ nlmsvc_unshare_file(struct nlm_host *host, struct nlm_file *file,
|
|||
void nlmsvc_traverse_shares(struct nlm_host *host, struct nlm_file *file,
|
||||
nlm_host_match_fn_t match)
|
||||
{
|
||||
struct nlm_share *share, **shpp;
|
||||
struct lockd_share *share, **shpp;
|
||||
|
||||
shpp = &file->f_shares;
|
||||
while ((share = *shpp) != NULL) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user