Unionfs: use noinline_for_stack
authorErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 02:55:45 +0000 (22:55 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Fri, 12 Aug 2011 02:37:56 +0000 (22:37 -0400)
Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/lookup.c
fs/unionfs/super.c

index 7618716cf0ad04ef3e7e22dc98d8b143c08e02e4..7f512c2a56408015539bb5b0ec40f436711a41f6 100644 (file)
@@ -32,7 +32,7 @@ static int is_validname(const char *name)
 }
 
 /* The rest of these are utility functions for lookup. */
-static noinline int is_opaque_dir(struct dentry *dentry, int bindex)
+static noinline_for_stack int is_opaque_dir(struct dentry *dentry, int bindex)
 {
        int err = 0;
        struct dentry *lower_dentry;
index fba159804810dfd8562affcead7e0c161ff77135..2456654afca2078c03919fcc500e06dba2f36e82 100644 (file)
@@ -189,9 +189,11 @@ out:
 }
 
 /* handle mode changing during remount */
-static noinline int do_remount_mode_option(char *optarg, int cur_branches,
-                                          struct unionfs_data *new_data,
-                                          struct path *new_lower_paths)
+static noinline_for_stack int do_remount_mode_option(
+                                       char *optarg,
+                                       int cur_branches,
+                                       struct unionfs_data *new_data,
+                                       struct path *new_lower_paths)
 {
        int err = -EINVAL;
        int perms, idx;
@@ -250,9 +252,10 @@ out:
 }
 
 /* handle branch deletion during remount */
-static noinline int do_remount_del_option(char *optarg, int cur_branches,
-                                         struct unionfs_data *new_data,
-                                         struct path *new_lower_paths)
+static noinline_for_stack int do_remount_del_option(
+                                       char *optarg, int cur_branches,
+                                       struct unionfs_data *new_data,
+                                       struct path *new_lower_paths)
 {
        int err = -EINVAL;
        int idx;
@@ -313,10 +316,11 @@ out:
 }
 
 /* handle branch insertion during remount */
-static noinline int do_remount_add_option(char *optarg, int cur_branches,
-                                         struct unionfs_data *new_data,
-                                         struct path *new_lower_paths,
-                                         int *high_branch_id)
+static noinline_for_stack int do_remount_add_option(
+                                       char *optarg, int cur_branches,
+                                       struct unionfs_data *new_data,
+                                       struct path *new_lower_paths,
+                                       int *high_branch_id)
 {
        int err = -EINVAL;
        int perms;