[PATCH] Mark some key VFS functions as __always_inline

Mark a few VFS functions as mandatory inline (based on Al Viro's request);
these must be inline due to stack usage issues during a recursive loop that
happens during the recursive symlink resolution (symlink to a symlink to a
symlink ..)

This patch at this point does not change behavior and is for documentation
purposes only (but this changes later in the series)

Signed-off-by: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Arjan van de Ven and committed by Linus Torvalds f1662356 652050ae

+4 -4
+4 -4
fs/namei.c
··· 486 static int __emul_lookup_dentry(const char *, struct nameidata *); 487 488 /* SMP-safe */ 489 - static inline int 490 walk_init_root(const char *name, struct nameidata *nd) 491 { 492 read_lock(&current->fs->lock); ··· 504 return 1; 505 } 506 507 - static inline int __vfs_follow_link(struct nameidata *nd, const char *link) 508 { 509 int res = 0; 510 char *name; ··· 544 struct dentry *dentry; 545 }; 546 547 - static inline int __do_follow_link(struct path *path, struct nameidata *nd) 548 { 549 int error; 550 void *cookie; ··· 690 return 0; 691 } 692 693 - static inline void follow_dotdot(struct nameidata *nd) 694 { 695 while(1) { 696 struct vfsmount *parent;
··· 486 static int __emul_lookup_dentry(const char *, struct nameidata *); 487 488 /* SMP-safe */ 489 + static __always_inline int 490 walk_init_root(const char *name, struct nameidata *nd) 491 { 492 read_lock(&current->fs->lock); ··· 504 return 1; 505 } 506 507 + static __always_inline int __vfs_follow_link(struct nameidata *nd, const char *link) 508 { 509 int res = 0; 510 char *name; ··· 544 struct dentry *dentry; 545 }; 546 547 + static __always_inline int __do_follow_link(struct path *path, struct nameidata *nd) 548 { 549 int error; 550 void *cookie; ··· 690 return 0; 691 } 692 693 + static __always_inline void follow_dotdot(struct nameidata *nd) 694 { 695 while(1) { 696 struct vfsmount *parent;