Skip to contentSkip to conversation

nfs: make nfs_initialise_sb() static and deinline it

PATCH New Denys Vlasenko 1 participant 1 message Apr 15, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs: make nfs_initialise_sb() static and deinline it

nfs_initialise_sb() is only used in fs/nfs/super.c, no need to be global.

superblock init is not a performance-critical operation, no need to inline. It compiles to 220 bytes and has two callsites.

text data bss dec hex filename
95903714 20860256 35991552 152755522 91add42 vmlinux_before 95903330 20860256 35991552 152755138 91adbc2 vmlinux

---
 fs/nfs/internal.h | 1 -
 fs/nfs/super.c    | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
fs/nfs/internal.h +0 -1
index f1d1d2c..ae235bb 100644
@@ -393,7 +393,6 @@ extern struct file_system_type nfs4_referral_fs_type;
 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 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_clone_sb_security(struct super_block *, struct dentry *, struct nfs_mount_info *);
 struct dentry *nfs_fs_mount_common(struct nfs_server *, int, const char *,
fs/nfs/super.c +1 -1
index f126828..215277b 100644
@@ -2281,7 +2281,7 @@ EXPORT_SYMBOL_GPL(nfs_remount);
 /*
  * 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);
 
Signature · 1 line
1.8.1.4