Skip to content

Commit dab1870

Browse files
author
Kent Overstreet
committed
bcachefs: fix stack frame size in fsck.c
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]>
1 parent 04f635e commit dab1870

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/bcachefs/fsck.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,7 @@ static int check_subdir_count(struct btree_trans *trans, struct inode_walker *w)
16771677
trans_was_restarted(trans, restart_count);
16781678
}
16791679

1680+
noinline_for_stack
16801681
static int check_dirent_inode_dirent(struct btree_trans *trans,
16811682
struct btree_iter *iter,
16821683
struct bkey_s_c_dirent d,
@@ -1773,6 +1774,7 @@ static int check_dirent_inode_dirent(struct btree_trans *trans,
17731774
return ret;
17741775
}
17751776

1777+
noinline_for_stack
17761778
static int check_dirent_target(struct btree_trans *trans,
17771779
struct btree_iter *iter,
17781780
struct bkey_s_c_dirent d,
@@ -1847,6 +1849,7 @@ static int find_snapshot_subvol(struct btree_trans *trans, u32 snapshot, u32 *su
18471849
return ret;
18481850
}
18491851

1852+
noinline_for_stack
18501853
static int check_dirent_to_subvol(struct btree_trans *trans, struct btree_iter *iter,
18511854
struct bkey_s_c_dirent d)
18521855
{

0 commit comments

Comments
 (0)