]> Git Repo - linux.git/commitdiff
bcachefs: fix stack frame size in fsck.c
authorKent Overstreet <[email protected]>
Thu, 6 Jun 2024 01:45:24 +0000 (21:45 -0400)
committerKent Overstreet <[email protected]>
Mon, 10 Jun 2024 17:17:16 +0000 (13:17 -0400)
fsck.c always runs top of the stack so we're not too concerned here;
noinline_for_stack is sufficient

Signed-off-by: Kent Overstreet <[email protected]>
fs/bcachefs/fsck.c

index fd277bd58ed34afe3ad5a86f93210ea621756b62..921bcdb3e5e4ed0a3faf7266c03950ffd19dbbea 100644 (file)
@@ -1677,6 +1677,7 @@ static int check_subdir_count(struct btree_trans *trans, struct inode_walker *w)
                trans_was_restarted(trans, restart_count);
 }
 
+noinline_for_stack
 static int check_dirent_inode_dirent(struct btree_trans *trans,
                                   struct btree_iter *iter,
                                   struct bkey_s_c_dirent d,
@@ -1773,6 +1774,7 @@ out_noiter:
        return ret;
 }
 
+noinline_for_stack
 static int check_dirent_target(struct btree_trans *trans,
                               struct btree_iter *iter,
                               struct bkey_s_c_dirent d,
@@ -1847,6 +1849,7 @@ found:
        return ret;
 }
 
+noinline_for_stack
 static int check_dirent_to_subvol(struct btree_trans *trans, struct btree_iter *iter,
                                  struct bkey_s_c_dirent d)
 {
This page took 0.052429 seconds and 4 git commands to generate.