diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-10 17:45:50 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2009-08-10 17:45:50 -0400 |
commit | 976a6f921cad26651d25e73826c05c7a023f5fa4 (patch) | |
tree | b06e283e3fe342bcf444328390b211bb155fd9dc /fs/nfs/internal.h | |
parent | e576e05a73bc1a00cdf56630942dbada1bf280a1 (diff) | |
parent | c05988cdb06237738d361ef82fbf4df1020aa3db (diff) |
Merge branch 'patches_cel-for-2.6.32' into nfs-for-2.6.32
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index e2ccb4a4398a..2e485677019c 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -102,6 +102,7 @@ struct nfs_mount_request { | |||
102 | }; | 102 | }; |
103 | 103 | ||
104 | extern int nfs_mount(struct nfs_mount_request *info); | 104 | extern int nfs_mount(struct nfs_mount_request *info); |
105 | extern void nfs_umount(const struct nfs_mount_request *info); | ||
105 | 106 | ||
106 | /* client.c */ | 107 | /* client.c */ |
107 | extern struct rpc_program nfs_program; | 108 | extern struct rpc_program nfs_program; |
@@ -213,7 +214,6 @@ void nfs_zap_acl_cache(struct inode *inode); | |||
213 | extern int nfs_wait_bit_killable(void *word); | 214 | extern int nfs_wait_bit_killable(void *word); |
214 | 215 | ||
215 | /* super.c */ | 216 | /* super.c */ |
216 | void nfs_parse_ip_address(char *, size_t, struct sockaddr *, size_t *); | ||
217 | extern struct file_system_type nfs_xdev_fs_type; | 217 | extern struct file_system_type nfs_xdev_fs_type; |
218 | #ifdef CONFIG_NFS_V4 | 218 | #ifdef CONFIG_NFS_V4 |
219 | extern struct file_system_type nfs4_xdev_fs_type; | 219 | extern struct file_system_type nfs4_xdev_fs_type; |
@@ -374,24 +374,3 @@ unsigned int nfs_page_array_len(unsigned int base, size_t len) | |||
374 | return ((unsigned long)len + (unsigned long)base + | 374 | return ((unsigned long)len + (unsigned long)base + |
375 | PAGE_SIZE - 1) >> PAGE_SHIFT; | 375 | PAGE_SIZE - 1) >> PAGE_SHIFT; |
376 | } | 376 | } |
377 | |||
378 | #define IPV6_SCOPE_DELIMITER '%' | ||
379 | |||
380 | /* | ||
381 | * Set the port number in an address. Be agnostic about the address | ||
382 | * family. | ||
383 | */ | ||
384 | static inline void nfs_set_port(struct sockaddr *sap, unsigned short port) | ||
385 | { | ||
386 | struct sockaddr_in *ap = (struct sockaddr_in *)sap; | ||
387 | struct sockaddr_in6 *ap6 = (struct sockaddr_in6 *)sap; | ||
388 | |||
389 | switch (sap->sa_family) { | ||
390 | case AF_INET: | ||
391 | ap->sin_port = htons(port); | ||
392 | break; | ||
393 | case AF_INET6: | ||
394 | ap6->sin6_port = htons(port); | ||
395 | break; | ||
396 | } | ||
397 | } | ||