Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294554
b: refs/heads/master
c: 4b7c8dd
h: refs/heads/master
v: v3
  • Loading branch information
Bryan Schumaker authored and Trond Myklebust committed Mar 12, 2012
1 parent 08a5900 commit 0e80678
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 09acfea5d8de419ebe84be43b08f7b79c965215f
refs/heads/master: 4b7c8dd205d6df1629ccde9f6dcf6a85d34c37ff
4 changes: 4 additions & 0 deletions trunk/fs/nfs/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,7 @@ static int nfs_sockaddr_cmp_ip4(const struct sockaddr *sa1,
(sin1->sin_port == sin2->sin_port);
}

#if defined(CONFIG_NFS_V4_1)
/*
* Test if two socket addresses represent the same actual socket,
* by comparing (only) relevant fields, excluding the port number.
Expand All @@ -422,6 +423,7 @@ static int nfs_sockaddr_match_ipaddr(const struct sockaddr *sa1,
}
return 0;
}
#endif /* CONFIG_NFS_V4_1 */

/*
* Test if two socket addresses represent the same actual socket,
Expand All @@ -442,6 +444,7 @@ static int nfs_sockaddr_cmp(const struct sockaddr *sa1,
return 0;
}

#if defined(CONFIG_NFS_V4_1)
/* Common match routine for v4.0 and v4.1 callback services */
static bool nfs4_cb_match_client(const struct sockaddr *addr,
struct nfs_client *clp, u32 minorversion)
Expand All @@ -464,6 +467,7 @@ static bool nfs4_cb_match_client(const struct sockaddr *addr,

return true;
}
#endif /* CONFIG_NFS_V4_1 */

/*
* Find an nfs_client on the list that matches the initialisation data
Expand Down

0 comments on commit 0e80678

Please sign in to comment.