diff options
author | Tom Tucker <tom@opengridcomputing.com> | 2007-12-30 22:08:37 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@citi.umich.edu> | 2008-02-01 16:42:14 -0500 |
commit | 9571af18fa1e4a431dc6f6023ddbd87d1112fd5d (patch) | |
tree | d8eafdea71ea1c13fe9c733442d41857e17901ac /fs/nfsd | |
parent | a217813f9067b785241cb7f31956e51d2071703a (diff) |
svc: Add svc_xprt_names service to replace svc_sock_names
Create a transport independent version of the svc_sock_names function.
The toclose capability of the svc_sock_names service can be implemented
using the svc_xprt_find and svc_xprt_close services.
Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
Acked-by: Neil Brown <neilb@suse.de>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Greg Banks <gnb@sgi.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfsctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c index eff6a6b4c2f6..bc22e0b0343a 100644 --- a/fs/nfsd/nfsctl.c +++ b/fs/nfsd/nfsctl.c | |||
@@ -503,7 +503,7 @@ static ssize_t write_ports(struct file *file, char *buf, size_t size) | |||
503 | int len = 0; | 503 | int len = 0; |
504 | lock_kernel(); | 504 | lock_kernel(); |
505 | if (nfsd_serv) | 505 | if (nfsd_serv) |
506 | len = svc_sock_names(buf, nfsd_serv, NULL); | 506 | len = svc_xprt_names(nfsd_serv, buf, 0); |
507 | unlock_kernel(); | 507 | unlock_kernel(); |
508 | return len; | 508 | return len; |
509 | } | 509 | } |