diff --git a/fs/namei.c b/fs/namei.c
index d5f45681ea889e113cbc66eeb1aacc8567cf185d..177934c79a0456b0790e934e0db044c3ac5f4a6c 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -777,12 +777,12 @@ static int complete_walk(struct nameidata *nd)
 	return status;
 }
 
-static __always_inline void set_root(struct nameidata *nd)
+static void set_root(struct nameidata *nd)
 {
 	get_fs_root(current->fs, &nd->root);
 }
 
-static __always_inline unsigned set_root_rcu(struct nameidata *nd)
+static unsigned set_root_rcu(struct nameidata *nd)
 {
 	struct fs_struct *fs = current->fs;
 	unsigned seq;