diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-02-25 10:22:49 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:09:56 +0300 |
commit | 7635e1a6d6740ce76e1c2204f9237f01c98153b3 (patch) | |
tree | 4c4da48cc475344da4ab46bbc7afe509bf4a5d52 /fs/bcachefs/journal.c | |
parent | e53d03fe39f1458065ddb5f7309ade066ba6fb95 (diff) | |
download | linux-7635e1a6d6740ce76e1c2204f9237f01c98153b3.tar.xz |
bcachefs: Rework open bucket partial list allocation
Now, any open_bucket can go on the partial list: allocating from the
partial list has been moved to its own dedicated function,
open_bucket_add_bucets() -> bucket_alloc_set_partial().
In particular, this means that erasure coded buckets can safely go on
the partial list; the new location works with the "allocate an ec bucket
first, then the rest" logic.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/journal.c')
-rw-r--r-- | fs/bcachefs/journal.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/bcachefs/journal.c b/fs/bcachefs/journal.c index 5dde208b4801..3b07982c2330 100644 --- a/fs/bcachefs/journal.c +++ b/fs/bcachefs/journal.c @@ -780,8 +780,7 @@ static int __bch2_set_nr_journal_buckets(struct bch_dev *ca, unsigned nr, break; } } else { - ob[nr_got] = bch2_bucket_alloc(c, ca, RESERVE_none, - false, cl); + ob[nr_got] = bch2_bucket_alloc(c, ca, RESERVE_none, cl); ret = PTR_ERR_OR_ZERO(ob[nr_got]); if (ret) break; |