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.h38
1 files changed, 23 insertions, 15 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h
index cfafd13b6fe9..8865538b26b6 100644
--- a/fs/nfs/internal.h
+++ b/fs/nfs/internal.h
@@ -90,7 +90,7 @@ struct nfs_client_initdata {
90 const char *hostname; 90 const char *hostname;
91 const struct sockaddr *addr; 91 const struct sockaddr *addr;
92 size_t addrlen; 92 size_t addrlen;
93 const struct nfs_rpc_ops *rpc_ops; 93 struct nfs_subversion *nfs_mod;
94 int proto; 94 int proto;
95 u32 minorversion; 95 u32 minorversion;
96 struct net *net; 96 struct net *net;
@@ -187,12 +187,11 @@ extern struct nfs_client *nfs4_find_client_ident(struct net *, int);
187extern struct nfs_client * 187extern struct nfs_client *
188nfs4_find_client_sessionid(struct net *, const struct sockaddr *, 188nfs4_find_client_sessionid(struct net *, const struct sockaddr *,
189 struct nfs4_sessionid *); 189 struct nfs4_sessionid *);
190extern struct nfs_server *nfs_create_server( 190extern struct nfs_server *nfs_create_server(struct nfs_mount_info *,
191 const struct nfs_parsed_mount_data *, 191 struct nfs_subversion *);
192 struct nfs_fh *);
193extern struct nfs_server *nfs4_create_server( 192extern struct nfs_server *nfs4_create_server(
194 const struct nfs_parsed_mount_data *, 193 struct nfs_mount_info *,
195 struct nfs_fh *); 194 struct nfs_subversion *);
196extern struct nfs_server *nfs4_create_referral_server(struct nfs_clone_mount *, 195extern struct nfs_server *nfs4_create_referral_server(struct nfs_clone_mount *,
197 struct nfs_fh *); 196 struct nfs_fh *);
198extern void nfs_free_server(struct nfs_server *server); 197extern void nfs_free_server(struct nfs_server *server);
@@ -224,6 +223,13 @@ static inline void nfs_fs_proc_exit(void)
224int nfs_sockaddr_match_ipaddr(const struct sockaddr *, const struct sockaddr *); 223int nfs_sockaddr_match_ipaddr(const struct sockaddr *, const struct sockaddr *);
225#endif 224#endif
226 225
226/* nfs3client.c */
227#if IS_ENABLED(CONFIG_NFS_V3)
228struct nfs_server *nfs3_create_server(struct nfs_mount_info *, struct nfs_subversion *);
229struct nfs_server *nfs3_clone_server(struct nfs_server *, struct nfs_fh *,
230 struct nfs_fattr *, rpc_authflavor_t);
231#endif
232
227/* callback_xdr.c */ 233/* callback_xdr.c */
228extern struct svc_version nfs4_callback_version1; 234extern struct svc_version nfs4_callback_version1;
229extern struct svc_version nfs4_callback_version4; 235extern struct svc_version nfs4_callback_version4;
@@ -256,7 +262,7 @@ extern int nfs3_decode_dirent(struct xdr_stream *,
256 struct nfs_entry *, int); 262 struct nfs_entry *, int);
257 263
258/* nfs4xdr.c */ 264/* nfs4xdr.c */
259#ifdef CONFIG_NFS_V4 265#if IS_ENABLED(CONFIG_NFS_V4)
260extern int nfs4_decode_dirent(struct xdr_stream *, 266extern int nfs4_decode_dirent(struct xdr_stream *,
261 struct nfs_entry *, int); 267 struct nfs_entry *, int);
262#endif 268#endif
@@ -266,7 +272,7 @@ extern const u32 nfs41_maxwrite_overhead;
266#endif 272#endif
267 273
268/* nfs4proc.c */ 274/* nfs4proc.c */
269#ifdef CONFIG_NFS_V4 275#if IS_ENABLED(CONFIG_NFS_V4)
270extern struct rpc_procinfo nfs4_procedures[]; 276extern struct rpc_procinfo nfs4_procedures[];
271#endif 277#endif
272 278
@@ -313,24 +319,26 @@ extern struct workqueue_struct *nfsiod_workqueue;
313extern struct inode *nfs_alloc_inode(struct super_block *sb); 319extern struct inode *nfs_alloc_inode(struct super_block *sb);
314extern void nfs_destroy_inode(struct inode *); 320extern void nfs_destroy_inode(struct inode *);
315extern int nfs_write_inode(struct inode *, struct writeback_control *); 321extern int nfs_write_inode(struct inode *, struct writeback_control *);
322extern void nfs_clear_inode(struct inode *);
316extern void nfs_evict_inode(struct inode *); 323extern void nfs_evict_inode(struct inode *);
317#ifdef CONFIG_NFS_V4
318extern void nfs4_evict_inode(struct inode *);
319#endif
320void nfs_zap_acl_cache(struct inode *inode); 324void nfs_zap_acl_cache(struct inode *inode);
321extern int nfs_wait_bit_killable(void *word); 325extern int nfs_wait_bit_killable(void *word);
322 326
323/* super.c */ 327/* super.c */
328extern const struct super_operations nfs_sops;
329extern struct file_system_type nfs_fs_type;
324extern struct file_system_type nfs_xdev_fs_type; 330extern struct file_system_type nfs_xdev_fs_type;
325#ifdef CONFIG_NFS_V4 331#if IS_ENABLED(CONFIG_NFS_V4)
326extern struct file_system_type nfs4_xdev_fs_type; 332extern struct file_system_type nfs4_xdev_fs_type;
327extern struct file_system_type nfs4_referral_fs_type; 333extern struct file_system_type nfs4_referral_fs_type;
328#endif 334#endif
335struct dentry *nfs_try_mount(int, const char *, struct nfs_mount_info *,
336 struct nfs_subversion *);
329void nfs_initialise_sb(struct super_block *); 337void nfs_initialise_sb(struct super_block *);
330int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); 338int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *);
331int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); 339int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *);
332struct dentry *nfs_fs_mount_common(struct file_system_type *, struct nfs_server *, 340struct dentry *nfs_fs_mount_common(struct nfs_server *, int, const char *,
333 int, const char *, struct nfs_mount_info *); 341 struct nfs_mount_info *, struct nfs_subversion *);
334struct dentry *nfs_fs_mount(struct file_system_type *, int, const char *, void *); 342struct dentry *nfs_fs_mount(struct file_system_type *, int, const char *, void *);
335struct dentry * nfs_xdev_mount_common(struct file_system_type *, int, 343struct dentry * nfs_xdev_mount_common(struct file_system_type *, int,
336 const char *, struct nfs_mount_info *); 344 const char *, struct nfs_mount_info *);
@@ -356,7 +364,7 @@ struct vfsmount *nfs_do_submount(struct dentry *, struct nfs_fh *,
356/* getroot.c */ 364/* getroot.c */
357extern struct dentry *nfs_get_root(struct super_block *, struct nfs_fh *, 365extern struct dentry *nfs_get_root(struct super_block *, struct nfs_fh *,
358 const char *); 366 const char *);
359#ifdef CONFIG_NFS_V4 367#if IS_ENABLED(CONFIG_NFS_V4)
360extern struct dentry *nfs4_get_root(struct super_block *, struct nfs_fh *, 368extern struct dentry *nfs4_get_root(struct super_block *, struct nfs_fh *,
361 const char *); 369 const char *);
362 370