diff options
| -rw-r--r-- | fs/namespace.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index db51ddc9b671..63ced21c12dc 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
| @@ -936,8 +936,9 @@ out_unlock: | |||
| 936 | 936 | ||
| 937 | /* | 937 | /* |
| 938 | * recursively change the type of the mountpoint. | 938 | * recursively change the type of the mountpoint. |
| 939 | * noinline this do_mount helper to save do_mount stack space. | ||
| 939 | */ | 940 | */ |
| 940 | static int do_change_type(struct nameidata *nd, int flag) | 941 | static noinline int do_change_type(struct nameidata *nd, int flag) |
| 941 | { | 942 | { |
| 942 | struct vfsmount *m, *mnt = nd->mnt; | 943 | struct vfsmount *m, *mnt = nd->mnt; |
| 943 | int recurse = flag & MS_REC; | 944 | int recurse = flag & MS_REC; |
| @@ -960,8 +961,10 @@ static int do_change_type(struct nameidata *nd, int flag) | |||
| 960 | 961 | ||
| 961 | /* | 962 | /* |
| 962 | * do loopback mount. | 963 | * do loopback mount. |
| 964 | * noinline this do_mount helper to save do_mount stack space. | ||
| 963 | */ | 965 | */ |
| 964 | static int do_loopback(struct nameidata *nd, char *old_name, int recurse) | 966 | static noinline int do_loopback(struct nameidata *nd, char *old_name, |
| 967 | int recurse) | ||
| 965 | { | 968 | { |
| 966 | struct nameidata old_nd; | 969 | struct nameidata old_nd; |
| 967 | struct vfsmount *mnt = NULL; | 970 | struct vfsmount *mnt = NULL; |
| @@ -1010,8 +1013,9 @@ out: | |||
| 1010 | * change filesystem flags. dir should be a physical root of filesystem. | 1013 | * change filesystem flags. dir should be a physical root of filesystem. |
| 1011 | * If you've mounted a non-root directory somewhere and want to do remount | 1014 | * If you've mounted a non-root directory somewhere and want to do remount |
| 1012 | * on it - tough luck. | 1015 | * on it - tough luck. |
| 1016 | * noinline this do_mount helper to save do_mount stack space. | ||
| 1013 | */ | 1017 | */ |
| 1014 | static int do_remount(struct nameidata *nd, int flags, int mnt_flags, | 1018 | static noinline int do_remount(struct nameidata *nd, int flags, int mnt_flags, |
| 1015 | void *data) | 1019 | void *data) |
| 1016 | { | 1020 | { |
| 1017 | int err; | 1021 | int err; |
| @@ -1046,7 +1050,10 @@ static inline int tree_contains_unbindable(struct vfsmount *mnt) | |||
| 1046 | return 0; | 1050 | return 0; |
| 1047 | } | 1051 | } |
| 1048 | 1052 | ||
| 1049 | static int do_move_mount(struct nameidata *nd, char *old_name) | 1053 | /* |
| 1054 | * noinline this do_mount helper to save do_mount stack space. | ||
| 1055 | */ | ||
| 1056 | static noinline int do_move_mount(struct nameidata *nd, char *old_name) | ||
| 1050 | { | 1057 | { |
| 1051 | struct nameidata old_nd, parent_nd; | 1058 | struct nameidata old_nd, parent_nd; |
| 1052 | struct vfsmount *p; | 1059 | struct vfsmount *p; |
| @@ -1121,8 +1128,9 @@ out: | |||
| 1121 | /* | 1128 | /* |
| 1122 | * create a new mount for userspace and request it to be added into the | 1129 | * create a new mount for userspace and request it to be added into the |
| 1123 | * namespace's tree | 1130 | * namespace's tree |
| 1131 | * noinline this do_mount helper to save do_mount stack space. | ||
| 1124 | */ | 1132 | */ |
| 1125 | static int do_new_mount(struct nameidata *nd, char *type, int flags, | 1133 | static noinline int do_new_mount(struct nameidata *nd, char *type, int flags, |
| 1126 | int mnt_flags, char *name, void *data) | 1134 | int mnt_flags, char *name, void *data) |
| 1127 | { | 1135 | { |
| 1128 | struct vfsmount *mnt; | 1136 | struct vfsmount *mnt; |
