diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2022-03-10 16:43:52 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:29 -0400 |
commit | 25be2e5d4a051ff2408c7ab007394e96798cf559 (patch) | |
tree | 2bf05701315558ea320da6c2b9a00403d8dd1343 /fs/bcachefs/super-io.h | |
parent | b17d3cec14b487924df709dbeffb900f124a2607 (diff) | |
download | linux-25be2e5d4a051ff2408c7ab007394e96798cf559.tar.gz linux-25be2e5d4a051ff2408c7ab007394e96798cf559.tar.bz2 linux-25be2e5d4a051ff2408c7ab007394e96798cf559.zip |
bcachefs: bch_sb_field_journal_v2
Add a new superblock field which represents journal buckets as ranges:
also move code for the superblock journal fields to journal_sb.c.
This also reworks the code for resizing the journal to write the new
superblock before using the new journal buckets, and thus be a bit
safer.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/super-io.h')
-rw-r--r-- | fs/bcachefs/super-io.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/fs/bcachefs/super-io.h b/fs/bcachefs/super-io.h index ccd6fe7fdf29..bed61a01e4be 100644 --- a/fs/bcachefs/super-io.h +++ b/fs/bcachefs/super-io.h @@ -75,15 +75,6 @@ static inline void bch2_check_set_feature(struct bch_fs *c, unsigned feat) __bch2_check_set_feature(c, feat); } -/* BCH_SB_FIELD_journal: */ - -static inline unsigned bch2_nr_journal_buckets(struct bch_sb_field_journal *j) -{ - return j - ? (__le64 *) vstruct_end(&j->field) - j->buckets - : 0; -} - /* BCH_SB_FIELD_members: */ static inline bool bch2_member_exists(struct bch_member *m) |