aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2006-08-22 20:06:07 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-09-22 23:24:30 -0400
commit7d4e2747a0412583526a162fbbd6edeeafcceb08 (patch)
tree756180b37a02b504998c646ff027652f80e10bab /fs/nfs/internal.h
parent770bfad846ab6628444428467b11fa6773ae9ea1 (diff)
NFS: Fix up split of fs/nfs/inode.c
Fix ups for the splitting of the superblock stuff out of fs/nfs/inode.c, including: (*) Move the callback tcpport module param into callback.c. (*) Move the idmap cache timeout module param into idmap.c. (*) Changes to internal.h: (*) namespace-nfs4.c was renamed to nfs4namespace.c. (*) nfs_stat_to_errno() is in nfs2xdr.c, not nfs4xdr.c. (*) nfs4xdr.c is contingent on CONFIG_NFS_V4. (*) nfs4_path() is only uses if CONFIG_NFS_V4 is set. Plus also: (*) The sec_flavours[] table should really be const. Signed-Off-By: David Howells <dhowells@redhat.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 660e9ff5341c..4802157963f8 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -15,7 +15,7 @@ struct nfs_clone_mount {
15 rpc_authflavor_t authflavor; 15 rpc_authflavor_t authflavor;
16}; 16};
17 17
18/* namespace-nfs4.c */ 18/* nfs4namespace.c */
19#ifdef CONFIG_NFS_V4 19#ifdef CONFIG_NFS_V4
20extern struct vfsmount *nfs_do_refmount(const struct vfsmount *mnt_parent, struct dentry *dentry); 20extern struct vfsmount *nfs_do_refmount(const struct vfsmount *mnt_parent, struct dentry *dentry);
21#else 21#else
@@ -46,6 +46,7 @@ extern void nfs_destroy_directcache(void);
46#endif 46#endif
47 47
48/* nfs2xdr.c */ 48/* nfs2xdr.c */
49extern int nfs_stat_to_errno(int);
49extern struct rpc_procinfo nfs_procedures[]; 50extern struct rpc_procinfo nfs_procedures[];
50extern u32 * nfs_decode_dirent(u32 *, struct nfs_entry *, int); 51extern u32 * nfs_decode_dirent(u32 *, struct nfs_entry *, int);
51 52
@@ -54,8 +55,9 @@ extern struct rpc_procinfo nfs3_procedures[];
54extern u32 *nfs3_decode_dirent(u32 *, struct nfs_entry *, int); 55extern u32 *nfs3_decode_dirent(u32 *, struct nfs_entry *, int);
55 56
56/* nfs4xdr.c */ 57/* nfs4xdr.c */
57extern int nfs_stat_to_errno(int); 58#ifdef CONFIG_NFS_V4
58extern u32 *nfs4_decode_dirent(u32 *p, struct nfs_entry *entry, int plus); 59extern u32 *nfs4_decode_dirent(u32 *p, struct nfs_entry *entry, int plus);
60#endif
59 61
60/* nfs4proc.c */ 62/* nfs4proc.c */
61#ifdef CONFIG_NFS_V4 63#ifdef CONFIG_NFS_V4
@@ -97,15 +99,13 @@ extern char *nfs_path(const char *base, const struct dentry *dentry,
97/* 99/*
98 * Determine the mount path as a string 100 * Determine the mount path as a string
99 */ 101 */
102#ifdef CONFIG_NFS_V4
100static inline char * 103static inline char *
101nfs4_path(const struct dentry *dentry, char *buffer, ssize_t buflen) 104nfs4_path(const struct dentry *dentry, char *buffer, ssize_t buflen)
102{ 105{
103#ifdef CONFIG_NFS_V4
104 return nfs_path(NFS_SB(dentry->d_sb)->mnt_path, dentry, buffer, buflen); 106 return nfs_path(NFS_SB(dentry->d_sb)->mnt_path, dentry, buffer, buflen);
105#else
106 return NULL;
107#endif
108} 107}
108#endif
109 109
110/* 110/*
111 * Determine the device name as a string 111 * Determine the device name as a string