aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r--fs/nfs/internal.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index 5e51c4535b6f..bd2815e2dec1 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -58,11 +58,13 @@ extern int nfs_stat_to_errno(int);
58extern u32 *nfs4_decode_dirent(u32 *p, struct nfs_entry *entry, int plus); 58extern u32 *nfs4_decode_dirent(u32 *p, struct nfs_entry *entry, int plus);
59 59
60/* nfs4proc.c */ 60/* nfs4proc.c */
61#ifdef CONFIG_NFS_V4
61extern struct rpc_procinfo nfs4_procedures[]; 62extern struct rpc_procinfo nfs4_procedures[];
62 63
63extern int nfs4_proc_fs_locations(struct inode *dir, struct dentry *dentry, 64extern int nfs4_proc_fs_locations(struct inode *dir, struct dentry *dentry,
64 struct nfs4_fs_locations *fs_locations, 65 struct nfs4_fs_locations *fs_locations,
65 struct page *page); 66 struct page *page);
67#endif
66 68
67/* inode.c */ 69/* inode.c */
68extern struct inode *nfs_alloc_inode(struct super_block *sb); 70extern struct inode *nfs_alloc_inode(struct super_block *sb);
@@ -92,9 +94,14 @@ extern char *nfs_path(const char *base, const struct dentry *dentry,
92/* 94/*
93 * Determine the mount path as a string 95 * Determine the mount path as a string
94 */ 96 */
95static inline char *nfs4_path(const struct dentry *dentry, char *buffer, ssize_t buflen) 97static inline char *
98nfs4_path(const struct dentry *dentry, char *buffer, ssize_t buflen)
96{ 99{
100#ifdef CONFIG_NFS_V4
97 return nfs_path(NFS_SB(dentry->d_sb)->mnt_path, dentry, buffer, buflen); 101 return nfs_path(NFS_SB(dentry->d_sb)->mnt_path, dentry, buffer, buflen);
102#else
103 return NULL;
104#endif
98} 105}
99 106
100/* 107/*