Skip to content

Commit ff6369d

Browse files
author
Kent Overstreet
committed
bcachefs: reduce stack usage in alloc_sectors_start()
with typical config options, variables in different inline functions aren't sharing stack space - and these are slowpaths. Signed-off-by: Kent Overstreet <[email protected]>
1 parent eabef52 commit ff6369d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/bcachefs/alloc_foreground.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ static inline bool too_many_writepoints(struct bch_fs *c, unsigned factor)
11041104
return stranded * factor > free;
11051105
}
11061106

1107-
static bool try_increase_writepoints(struct bch_fs *c)
1107+
static noinline bool try_increase_writepoints(struct bch_fs *c)
11081108
{
11091109
struct write_point *wp;
11101110

@@ -1117,7 +1117,7 @@ static bool try_increase_writepoints(struct bch_fs *c)
11171117
return true;
11181118
}
11191119

1120-
static bool try_decrease_writepoints(struct btree_trans *trans, unsigned old_nr)
1120+
static noinline bool try_decrease_writepoints(struct btree_trans *trans, unsigned old_nr)
11211121
{
11221122
struct bch_fs *c = trans->c;
11231123
struct write_point *wp;

0 commit comments

Comments
 (0)