diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-01-21 20:51:51 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:08:52 -0400 |
commit | 72eab8da47b211f50d0b68548e4cf070efb0c7ef (patch) | |
tree | 2e4ecbf7bfdeee280bd96369243648b535da8bfe /fs/bcachefs/super.c | |
parent | 079663d8ed81bfd74a331b819eda17d753719605 (diff) |
bcachefs: Refactor dev usage
This is to make it more amenable for serialization.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/super.c')
-rw-r--r-- | fs/bcachefs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 2b3fb07fbc4d..e04d68ceb55b 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -1221,7 +1221,7 @@ static int bch2_dev_attach_bdev(struct bch_fs *c, struct bch_sb_handle *sb) return ret; if (test_bit(BCH_FS_ALLOC_READ_DONE, &c->flags) && - !percpu_u64_get(&ca->usage[0]->buckets[BCH_DATA_sb])) { + !percpu_u64_get(&ca->usage[0]->d[BCH_DATA_sb].buckets)) { mutex_lock(&c->sb_lock); bch2_mark_dev_superblock(ca->fs, ca, 0); mutex_unlock(&c->sb_lock); |