diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2006-04-25 09:51:45 -0400 |
|---|---|---|
| committer | David Woodhouse <dwmw2@infradead.org> | 2006-04-25 09:51:45 -0400 |
| commit | 997b7af2fe0810ca82a2f801a295218b51426e5a (patch) | |
| tree | 06803bb0fcf2b910c4a222f0ce0b575cf23b90f7 /include/linux | |
| parent | eacf17bdbc8e6f24fe46cd7e10fb9a657f060d08 (diff) | |
Don't include private headers from user-visible parts of include/linux/nfs*.h
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/nfs.h | 8 | ||||
| -rw-r--r-- | include/linux/nfs4.h | 6 | ||||
| -rw-r--r-- | include/linux/nfs_fs.h | 39 |
3 files changed, 26 insertions, 27 deletions
diff --git a/include/linux/nfs.h b/include/linux/nfs.h index ca2ffa6ae1d5..54af92c1c70b 100644 --- a/include/linux/nfs.h +++ b/include/linux/nfs.h | |||
| @@ -7,9 +7,6 @@ | |||
| 7 | #ifndef _LINUX_NFS_H | 7 | #ifndef _LINUX_NFS_H |
| 8 | #define _LINUX_NFS_H | 8 | #define _LINUX_NFS_H |
| 9 | 9 | ||
| 10 | #include <linux/sunrpc/msg_prot.h> | ||
| 11 | #include <linux/string.h> | ||
| 12 | |||
| 13 | #define NFS_PROGRAM 100003 | 10 | #define NFS_PROGRAM 100003 |
| 14 | #define NFS_PORT 2049 | 11 | #define NFS_PORT 2049 |
| 15 | #define NFS_MAXDATA 8192 | 12 | #define NFS_MAXDATA 8192 |
| @@ -129,7 +126,10 @@ enum nfs_ftype { | |||
| 129 | NFFIFO = 8 | 126 | NFFIFO = 8 |
| 130 | }; | 127 | }; |
| 131 | 128 | ||
| 132 | #if defined(__KERNEL__) | 129 | #ifdef __KERNEL__ |
| 130 | #include <linux/sunrpc/msg_prot.h> | ||
| 131 | #include <linux/string.h> | ||
| 132 | |||
| 133 | /* | 133 | /* |
| 134 | * This is the kernel NFS client file handle representation | 134 | * This is the kernel NFS client file handle representation |
| 135 | */ | 135 | */ |
diff --git a/include/linux/nfs4.h b/include/linux/nfs4.h index 0c1c306cdaec..1059e6d69d3b 100644 --- a/include/linux/nfs4.h +++ b/include/linux/nfs4.h | |||
| @@ -14,7 +14,6 @@ | |||
| 14 | #define _LINUX_NFS4_H | 14 | #define _LINUX_NFS4_H |
| 15 | 15 | ||
| 16 | #include <linux/types.h> | 16 | #include <linux/types.h> |
| 17 | #include <linux/list.h> | ||
| 18 | 17 | ||
| 19 | #define NFS4_VERIFIER_SIZE 8 | 18 | #define NFS4_VERIFIER_SIZE 8 |
| 20 | #define NFS4_FHSIZE 128 | 19 | #define NFS4_FHSIZE 128 |
| @@ -97,6 +96,9 @@ enum nfs4_acl_whotype { | |||
| 97 | NFS4_ACL_WHO_EVERYONE, | 96 | NFS4_ACL_WHO_EVERYONE, |
| 98 | }; | 97 | }; |
| 99 | 98 | ||
| 99 | #ifdef __KERNEL__ | ||
| 100 | #include <linux/list.h> | ||
| 101 | |||
| 100 | struct nfs4_ace { | 102 | struct nfs4_ace { |
| 101 | uint32_t type; | 103 | uint32_t type; |
| 102 | uint32_t flag; | 104 | uint32_t flag; |
| @@ -345,8 +347,6 @@ enum lock_type4 { | |||
| 345 | #define NFS4_MINOR_VERSION 0 | 347 | #define NFS4_MINOR_VERSION 0 |
| 346 | #define NFS4_DEBUG 1 | 348 | #define NFS4_DEBUG 1 |
| 347 | 349 | ||
| 348 | #ifdef __KERNEL__ | ||
| 349 | |||
| 350 | /* Index of predefined Linux client operations */ | 350 | /* Index of predefined Linux client operations */ |
| 351 | 351 | ||
| 352 | enum { | 352 | enum { |
diff --git a/include/linux/nfs_fs.h b/include/linux/nfs_fs.h index c71227dd4389..7e079f8ce18b 100644 --- a/include/linux/nfs_fs.h +++ b/include/linux/nfs_fs.h | |||
| @@ -9,26 +9,6 @@ | |||
| 9 | #ifndef _LINUX_NFS_FS_H | 9 | #ifndef _LINUX_NFS_FS_H |
| 10 | #define _LINUX_NFS_FS_H | 10 | #define _LINUX_NFS_FS_H |
| 11 | 11 | ||
| 12 | #include <linux/config.h> | ||
| 13 | #include <linux/in.h> | ||
| 14 | #include <linux/mm.h> | ||
| 15 | #include <linux/pagemap.h> | ||
| 16 | #include <linux/rwsem.h> | ||
| 17 | #include <linux/wait.h> | ||
| 18 | |||
| 19 | #include <linux/nfs_fs_sb.h> | ||
| 20 | |||
| 21 | #include <linux/sunrpc/debug.h> | ||
| 22 | #include <linux/sunrpc/auth.h> | ||
| 23 | #include <linux/sunrpc/clnt.h> | ||
| 24 | |||
| 25 | #include <linux/nfs.h> | ||
| 26 | #include <linux/nfs2.h> | ||
| 27 | #include <linux/nfs3.h> | ||
| 28 | #include <linux/nfs4.h> | ||
| 29 | #include <linux/nfs_xdr.h> | ||
| 30 | #include <linux/rwsem.h> | ||
| 31 | #include <linux/mempool.h> | ||
| 32 | 12 | ||
| 33 | /* | 13 | /* |
| 34 | * Enable debugging support for nfs client. | 14 | * Enable debugging support for nfs client. |
| @@ -63,6 +43,25 @@ | |||
| 63 | #define FLUSH_NOCOMMIT 32 /* Don't send the NFSv3/v4 COMMIT */ | 43 | #define FLUSH_NOCOMMIT 32 /* Don't send the NFSv3/v4 COMMIT */ |
| 64 | 44 | ||
| 65 | #ifdef __KERNEL__ | 45 | #ifdef __KERNEL__ |
| 46 | #include <linux/in.h> | ||
| 47 | #include <linux/mm.h> | ||
| 48 | #include <linux/pagemap.h> | ||
| 49 | #include <linux/rwsem.h> | ||
| 50 | #include <linux/wait.h> | ||
| 51 | |||
| 52 | #include <linux/nfs_fs_sb.h> | ||
| 53 | |||
| 54 | #include <linux/sunrpc/debug.h> | ||
| 55 | #include <linux/sunrpc/auth.h> | ||
| 56 | #include <linux/sunrpc/clnt.h> | ||
| 57 | |||
| 58 | #include <linux/nfs.h> | ||
| 59 | #include <linux/nfs2.h> | ||
| 60 | #include <linux/nfs3.h> | ||
| 61 | #include <linux/nfs4.h> | ||
| 62 | #include <linux/nfs_xdr.h> | ||
| 63 | #include <linux/rwsem.h> | ||
| 64 | #include <linux/mempool.h> | ||
| 66 | 65 | ||
| 67 | /* | 66 | /* |
| 68 | * NFSv3/v4 Access mode cache entry | 67 | * NFSv3/v4 Access mode cache entry |
