Subject: __always_inline: VFS From: Arjan van de Ven Mark a few VFS functions as mandatory inline (based on Al Viro's request); these must be inline due to stack usage during a recursive loop Signed-off-by: Arjan van de Ven Signed-off-by: Ingo Molnar ---- fs/namei.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) Index: linux-gcc.q/fs/namei.c =================================================================== --- linux-gcc.q.orig/fs/namei.c +++ linux-gcc.q/fs/namei.c @@ -485,7 +485,7 @@ static struct dentry * real_lookup(struc static int __emul_lookup_dentry(const char *, struct nameidata *); /* SMP-safe */ -static inline int +static __always_inline int walk_init_root(const char *name, struct nameidata *nd) { read_lock(¤t->fs->lock); @@ -503,7 +503,7 @@ walk_init_root(const char *name, struct return 1; } -static inline int __vfs_follow_link(struct nameidata *nd, const char *link) +static __always_inline int __vfs_follow_link(struct nameidata *nd, const char *link) { int res = 0; char *name; @@ -543,7 +543,7 @@ struct path { struct dentry *dentry; }; -static inline int __do_follow_link(struct path *path, struct nameidata *nd) +static __always_inline int __do_follow_link(struct path *path, struct nameidata *nd) { int error; void *cookie; @@ -689,7 +689,7 @@ int follow_down(struct vfsmount **mnt, s return 0; } -static inline void follow_dotdot(struct nameidata *nd) +static __always_inline void follow_dotdot(struct nameidata *nd) { while(1) { struct vfsmount *parent;