Commit 4f253e1e authored by Jan Kara's avatar Jan Kara Committed by Trond Myklebust

nfs: Mark unnecessarily extern functions as static

nfs_initialise_sb() and nfs_clone_super() are declared as extern even
though they are used only in fs/nfs/super.c. Mark them as static.

Also remove explicit 'inline' directive from nfs_initialise_sb() and
leave it upto compiler to decide whether inlining is worth it.
Signed-off-by: default avatarJan Kara <jack@suse.cz>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent 6ea44adc
...@@ -398,7 +398,6 @@ extern struct file_system_type nfs4_referral_fs_type; ...@@ -398,7 +398,6 @@ extern struct file_system_type nfs4_referral_fs_type;
bool nfs_auth_info_match(const struct nfs_auth_info *, rpc_authflavor_t); bool nfs_auth_info_match(const struct nfs_auth_info *, rpc_authflavor_t);
struct dentry *nfs_try_mount(int, const char *, struct nfs_mount_info *, struct dentry *nfs_try_mount(int, const char *, struct nfs_mount_info *,
struct nfs_subversion *); struct nfs_subversion *);
void nfs_initialise_sb(struct super_block *);
int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *);
int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *);
struct dentry *nfs_fs_mount_common(struct nfs_server *, int, const char *, struct dentry *nfs_fs_mount_common(struct nfs_server *, int, const char *,
...@@ -458,7 +457,6 @@ extern void nfs_read_prepare(struct rpc_task *task, void *calldata); ...@@ -458,7 +457,6 @@ extern void nfs_read_prepare(struct rpc_task *task, void *calldata);
extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio); extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio);
/* super.c */ /* super.c */
void nfs_clone_super(struct super_block *, struct nfs_mount_info *);
void nfs_umount_begin(struct super_block *); void nfs_umount_begin(struct super_block *);
int nfs_statfs(struct dentry *, struct kstatfs *); int nfs_statfs(struct dentry *, struct kstatfs *);
int nfs_show_options(struct seq_file *, struct dentry *); int nfs_show_options(struct seq_file *, struct dentry *);
......
...@@ -2301,7 +2301,7 @@ EXPORT_SYMBOL_GPL(nfs_remount); ...@@ -2301,7 +2301,7 @@ EXPORT_SYMBOL_GPL(nfs_remount);
/* /*
* Initialise the common bits of the superblock * Initialise the common bits of the superblock
*/ */
inline void nfs_initialise_sb(struct super_block *sb) static void nfs_initialise_sb(struct super_block *sb)
{ {
struct nfs_server *server = NFS_SB(sb); struct nfs_server *server = NFS_SB(sb);
...@@ -2348,7 +2348,8 @@ EXPORT_SYMBOL_GPL(nfs_fill_super); ...@@ -2348,7 +2348,8 @@ EXPORT_SYMBOL_GPL(nfs_fill_super);
/* /*
* Finish setting up a cloned NFS2/3/4 superblock * Finish setting up a cloned NFS2/3/4 superblock
*/ */
void nfs_clone_super(struct super_block *sb, struct nfs_mount_info *mount_info) static void nfs_clone_super(struct super_block *sb,
struct nfs_mount_info *mount_info)
{ {
const struct super_block *old_sb = mount_info->cloned->sb; const struct super_block *old_sb = mount_info->cloned->sb;
struct nfs_server *server = NFS_SB(sb); struct nfs_server *server = NFS_SB(sb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment