diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2020-07-21 17:12:39 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:43 -0400 |
commit | 74ed7e560b794369adf87e0d310453bc78f4b273 (patch) | |
tree | 4ba81323571e27cdb7bdf3d6f372132d86418035 /fs/bcachefs/alloc_types.h | |
parent | 3d080aa52f6c1bf10734ec4464a2204cbbd80671 (diff) | |
download | linux-74ed7e560b794369adf87e0d310453bc78f4b273.tar.gz linux-74ed7e560b794369adf87e0d310453bc78f4b273.tar.bz2 linux-74ed7e560b794369adf87e0d310453bc78f4b273.zip |
bcachefs: Don't let copygc buckets be stolen by other threads
And assorted other copygc fixes.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/alloc_types.h')
-rw-r--r-- | fs/bcachefs/alloc_types.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/alloc_types.h b/fs/bcachefs/alloc_types.h index 4f1465077994..20705460bb0a 100644 --- a/fs/bcachefs/alloc_types.h +++ b/fs/bcachefs/alloc_types.h @@ -66,6 +66,7 @@ struct open_bucket { u8 type; unsigned valid:1; unsigned on_partial_list:1; + int alloc_reserve:3; unsigned sectors_free; struct bch_extent_ptr ptr; struct ec_stripe_new *ec; |