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: Jan Kara <jack@suse.cz>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>

authored by Jan Kara and committed by Trond Myklebust 4f253e1e 6ea44adc

Changed files
+3 -4
fs
-2
fs/nfs/internal.h
··· 398 398 bool nfs_auth_info_match(const struct nfs_auth_info *, rpc_authflavor_t); 399 399 struct dentry *nfs_try_mount(int, const char *, struct nfs_mount_info *, 400 400 struct nfs_subversion *); 401 - void nfs_initialise_sb(struct super_block *); 402 401 int nfs_set_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); 403 402 int nfs_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *); 404 403 struct dentry *nfs_fs_mount_common(struct nfs_server *, int, const char *, ··· 457 458 extern void nfs_pageio_reset_read_mds(struct nfs_pageio_descriptor *pgio); 458 459 459 460 /* super.c */ 460 - void nfs_clone_super(struct super_block *, struct nfs_mount_info *); 461 461 void nfs_umount_begin(struct super_block *); 462 462 int nfs_statfs(struct dentry *, struct kstatfs *); 463 463 int nfs_show_options(struct seq_file *, struct dentry *);
+3 -2
fs/nfs/super.c
··· 2301 2301 /* 2302 2302 * Initialise the common bits of the superblock 2303 2303 */ 2304 - inline void nfs_initialise_sb(struct super_block *sb) 2304 + static void nfs_initialise_sb(struct super_block *sb) 2305 2305 { 2306 2306 struct nfs_server *server = NFS_SB(sb); 2307 2307 ··· 2348 2348 /* 2349 2349 * Finish setting up a cloned NFS2/3/4 superblock 2350 2350 */ 2351 - void nfs_clone_super(struct super_block *sb, struct nfs_mount_info *mount_info) 2351 + static void nfs_clone_super(struct super_block *sb, 2352 + struct nfs_mount_info *mount_info) 2352 2353 { 2353 2354 const struct super_block *old_sb = mount_info->cloned->sb; 2354 2355 struct nfs_server *server = NFS_SB(sb);