diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2012-07-16 16:39:20 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-07-17 13:33:55 -0400 |
commit | fbdefd6442811392e857721573b63a51d1149cc8 (patch) | |
tree | d3b36fa0af3a91a22c3799db13c4cb07d0ec2fff /fs/nfs/internal.h | |
parent | 3cadf4b864cab9d19b935289c004799d1065cd03 (diff) |
NFS: Split out the NFS v4 filesystem types
This allows me to move the v4 mounting and unmounting functions out of
the generic client and into a file that is only compiled when CONFIG_NFS_V4
is enabled.
Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/internal.h')
-rw-r--r-- | fs/nfs/internal.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/fs/nfs/internal.h b/fs/nfs/internal.h index b4a35705246c..cfafd13b6fe9 100644 --- a/fs/nfs/internal.h +++ b/fs/nfs/internal.h | |||
@@ -153,6 +153,14 @@ struct nfs_mount_request { | |||
153 | struct net *net; | 153 | struct net *net; |
154 | }; | 154 | }; |
155 | 155 | ||
156 | struct nfs_mount_info { | ||
157 | void (*fill_super)(struct super_block *, struct nfs_mount_info *); | ||
158 | int (*set_security)(struct super_block *, struct dentry *, struct nfs_mount_info *); | ||
159 | struct nfs_parsed_mount_data *parsed; | ||
160 | struct nfs_clone_mount *cloned; | ||
161 | struct nfs_fh *mntfh; | ||
162 | }; | ||
163 | |||
156 | extern int nfs_mount(struct nfs_mount_request *info); | 164 | extern int nfs_mount(struct nfs_mount_request *info); |
157 | extern void nfs_umount(const struct nfs_mount_request *info); | 165 | extern void nfs_umount(const struct nfs_mount_request *info); |
158 | 166 | ||
@@ -318,6 +326,16 @@ extern struct file_system_type nfs_xdev_fs_type; | |||
318 | extern struct file_system_type nfs4_xdev_fs_type; | 326 | extern struct file_system_type nfs4_xdev_fs_type; |
319 | extern struct file_system_type nfs4_referral_fs_type; | 327 | extern struct file_system_type nfs4_referral_fs_type; |
320 | #endif | 328 | #endif |
329 | void nfs_initialise_sb(struct super_block *); | ||
330 | int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); | ||
331 | int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); | ||
332 | struct dentry *nfs_fs_mount_common(struct file_system_type *, struct nfs_server *, | ||
333 | int, const char *, struct nfs_mount_info *); | ||
334 | struct dentry *nfs_fs_mount(struct file_system_type *, int, const char *, void *); | ||
335 | struct dentry * nfs_xdev_mount_common(struct file_system_type *, int, | ||
336 | const char *, struct nfs_mount_info *); | ||
337 | void nfs_kill_super(struct super_block *); | ||
338 | void nfs_fill_super(struct super_block *, struct nfs_mount_info *); | ||
321 | 339 | ||
322 | extern struct rpc_stat nfs_rpcstat; | 340 | extern struct rpc_stat nfs_rpcstat; |
323 | 341 | ||
@@ -364,6 +382,17 @@ extern void nfs_pageio_init_read(struct nfs_pageio_descriptor *pgio, | |||
364 | extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio); | 382 | extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio); |
365 | extern void nfs_readdata_release(struct nfs_read_data *rdata); | 383 | extern void nfs_readdata_release(struct nfs_read_data *rdata); |
366 | 384 | ||
385 | /* super.c */ | ||
386 | void nfs_clone_super(struct super_block *, struct nfs_mount_info *); | ||
387 | void nfs_umount_begin(struct super_block *); | ||
388 | int nfs_statfs(struct dentry *, struct kstatfs *); | ||
389 | int nfs_show_options(struct seq_file *, struct dentry *); | ||
390 | int nfs_show_devname(struct seq_file *, struct dentry *); | ||
391 | int nfs_show_path(struct seq_file *, struct dentry *); | ||
392 | int nfs_show_stats(struct seq_file *, struct dentry *); | ||
393 | void nfs_put_super(struct super_block *); | ||
394 | int nfs_remount(struct super_block *sb, int *flags, char *raw_data); | ||
395 | |||
367 | /* write.c */ | 396 | /* write.c */ |
368 | extern void nfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, | 397 | extern void nfs_pageio_init_write(struct nfs_pageio_descriptor *pgio, |
369 | struct inode *inode, int ioflags, | 398 | struct inode *inode, int ioflags, |